Can anyone comment the following problem:
I’ve got a window and installed event filter. This filter
checks for SDL_VIDEORESIZE events ( which are received when
user resizes window with mouse ) and executes corresponding
resizing code ( SDL_FreeSurface(); SDL_CreateSurface() )
when it receives them.
Now I want to manually resize that window from other thread.
Resizing by calling SDL_FreeSurface() and SDL_CreateSurface()
is not accepted: I want to add SDL_VIDEORESIZE event to the
queue, so that resizing will be performed from event thread.
The following code:
does not work ( SDL_PushEvent always fails ). I tried to delete
some events from queue by calling SDL_PeepEvents() before
SDL_PushEvent(). Now SDL_PushEvent() succeeds, but event filter
still does not receive resize event
What am I doing wrong? How it can be done ( maybe by direct X11
call )? I don’t need portability, any solution that works with
Unix/X11 will be OK.
Eugene mailto:divx at euro.ru