comparison src/video/x11/SDL_x11video.c @ 4016:3f93ccc2c01e SDL-1.2

Clear the NOFRAME and RESIZABLE flags in the X11 target before setting their new values, so multiple calls to SetVideoMode() that toggle these will end up with the right data. Fixes Bugzilla #441.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 08 Jul 2007 01:50:26 +0000
parents a6264945ac52
children 07d621a03a94
comparison
equal deleted inserted replaced
4015:7e878cc4250a 4016:3f93ccc2c01e
1201 current->w = width; 1201 current->w = width;
1202 current->h = height; 1202 current->h = height;
1203 current->pitch = SDL_CalculatePitch(current); 1203 current->pitch = SDL_CalculatePitch(current);
1204 X11_ResizeImage(this, current, flags); 1204 X11_ResizeImage(this, current, flags);
1205 } 1205 }
1206
1207 /* Clear these flags and set them only if they are in the new set. */
1208 current->flags &= ~(SDL_RESIZABLE|SDL_NOFRAME);
1206 current->flags |= (flags&(SDL_RESIZABLE|SDL_NOFRAME)); 1209 current->flags |= (flags&(SDL_RESIZABLE|SDL_NOFRAME));
1207 1210
1208 done: 1211 done:
1209 /* Release the event thread */ 1212 /* Release the event thread */
1210 XSync(SDL_Display, False); 1213 XSync(SDL_Display, False);