@BSzili
Yep, its indeed was easy enough as expected. There not only structure was missing in sdl, but also whole sdl_getwminfo().
Added them all and already tested by simple test case:
// compile gcc test.c -o test -lauto
#define __USE_INLINE__
#include <stdio.h>
#include <SDL/SDL.h>
#include <SDL/SDL_syswm.h>
#include <proto/intuition.h>
#include <proto/dos.h>
SDL_Surface *screen;
SDL_Event event;
SDL_SysWMinfo info;
int main(int argc, char *argv[]) {
SDL_Init(SDL_INIT_VIDEO);
screen = SDL_SetVideoMode(640, 480, 16, SDL_SWSURFACE);
SDL_WM_SetCaption("SDL_GetWMInfo test", "SDL_GetWMInfo test");
SDL_VERSION(&info.version);
if ( SDL_GetWMInfo(&info) ) {
Delay(200);
HideWindow(info.window);
Delay(200);
ShowWindow(info.window,WINDOW_FRONTMOST);
Delay(200);
}
SDL_Quit();
return 0;
}
As well as already include it to muimplayer , so now can iconify at one time output with SDL too , and its anyway tasty not only for mplayer: now anyone can add iconify gadgets to their sdl ports , or any other gadgets or whatever as pointer to intuition window is here , and that pretty helpful. Currently i do structures like this:
#elif defined(SDL_VIDEO_DRIVER_AMIGAOS4)
#include <proto/intuition.h>
/* The AmigaOS4 custom event structure */
struct SDL_SysWMmsg {
SDL_version version;
struct Window *window;
};
/* The AmigaOS4 custom window manager information structure */
typedef struct SDL_SysWMinfo {
SDL_version version;
struct Window *window;
} SDL_SysWMinfo;
But that can be expanded later with no probs to any other info anyone need (all from SDL_PrivateVideoData can be added: screens/ofscreens/rects, whatever else).
In other words, check latest commit:
https://code.google.com/p/os4sdl/source/detail?r=57(config.log and pthread/sdl_syscond.c not related, just some auto save do in them, so they uploaded as changed too, while they aren't). Files to check in ommit: sdl_syswm.h , sdl_sysvideo.h, sdl_os4video.c and sdl_os4wm.c