Skip to main content
GameDev.net gamedev.net
🔒 Locked

When an SDL-OpenGL window is dragged, what event to handle to update client area?

Started by owl Jan 31, 2009 at 8:36 PM 2 replies 1.3k views
Original Post
owl
owl
Because when I drag the window and some part of it goes outside the screen and back, it won't repaint (swap the buffers) until I release it. WM_PAINT isn't generated. Should I swap the buffers on WM_NCPAINT instead? I think I'm going to swap the buffers on WM_MOVING... Thanks. EDIT: Nope, swapping during WM_MOVING won't do the trick. [Edited by - owl on February 1, 2009 11:01:21 AM]
[size="2"]I like the Walrus best.
owl
owl
No, SDL_ExposeEvent only gets fired once.

While I drag the SDL-OpenGl window it seems to just stop updating the client area... trying to swap the buffer during non-client events doesn't work.

I see that the game SuperTux (which is SDL based) suffers from this also...
[size="2"]I like the Walrus best.
owl
owl
bumpity bump
[size="2"]I like the Walrus best.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.