Original Post
I've made a SDL window resizable, but when I resize it, it doesn't update. I grab the edge of the window and stretch it, and it stretches, but the surface in the center isn't refreshed until I let go of the window's edge. This creates an ugly blur when resizing. Here's two pictures to illustrate what I mean. While dragging:
And after I let go:
It seems to me that SDL stops my application while it is being resized! I don't mind my application pausing, but I don't want that ugly smear to appear at every resize. Is there a SDL event that I can use to tell me while a window is being resized, and not just after? Currently I just have this in my event loop:
And after I let go:
It seems to me that SDL stops my application while it is being resized! I don't mind my application pausing, but I don't want that ugly smear to appear at every resize. Is there a SDL event that I can use to tell me while a window is being resized, and not just after? Currently I just have this in my event loop: case SDL_VIDEORESIZE: //Screen resized
{
SCREEN_WIDTH = WinEvent.resize.w;
SCREEN_HEIGHT = WinEvent.resize.h;
Screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_SWSURFACE|SDL_RESIZABLE);
if(Screen == NULL) return -1;
} What can I do to remedy this?