Window resize events

Hello,

How do I distinguish between two types of “window resized” events - when the user manually resizes a window and all the others?
According to the docs, it seems the SDL_WINDOWEVENT_RESIZED event is what I need (“the size was changed by an external event, i.e. the user or the window manager”),
but still it’s being triggered by the library’s SDL_SetWindowFullscreen() calls.

Thanks!

SDL_WINDOWEVENT_RESIZED is what you want. Unfortunately we don’t currently
know in advance what window size setting fullscreen mode will actually give
you, so we don’t hide that event from you.

If that’s a real problem for your code, feel free to dig into SDL code and
see if it’s possible to predict the fullscreen size and set window->w/h to
the predicted value and see if that works for you.On Tue, Jul 8, 2014 at 10:08 PM, Vuhdo wrote:

Hello,

How do I distinguish between two types of “window resized” events - when
the user manually resizes a window and all the others?
According to the docs, it seems the SDL_WINDOWEVENT_RESIZED event is what
I need (“the size was changed by an external event, i.e. the user or the
window manager”),
but still it’s being triggered by the library’s SDL_SetWindowFullscreen()
calls.

Thanks!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org