src/video/quartz/SDL_QuartzVideo.m
changeset 852 2651b6b43840
parent 832 f003714db2f4
child 876 9e84d106ec19
equal deleted inserted replaced
851:2687d28166d2 852:2651b6b43840
   826 
   826 
   827 static SDL_Surface* QZ_SetVideoMode (_THIS, SDL_Surface *current, int width,
   827 static SDL_Surface* QZ_SetVideoMode (_THIS, SDL_Surface *current, int width,
   828                                      int height, int bpp, Uint32 flags) {
   828                                      int height, int bpp, Uint32 flags) {
   829 
   829 
   830     current->flags = 0;
   830     current->flags = 0;
       
   831     current->pixels = NULL;
   831 
   832 
   832     /* Setup full screen video */
   833     /* Setup full screen video */
   833     if ( flags & SDL_FULLSCREEN ) {
   834     if ( flags & SDL_FULLSCREEN ) {
   834         current = QZ_SetVideoFullScreen (this, current, width, height, bpp, flags );
   835         current = QZ_SetVideoFullScreen (this, current, width, height, bpp, flags );
   835         if (current == NULL)
   836         if (current == NULL)