src/video/windib/SDL_dibvideo.c
branchSDL-1.2
changeset 10178 e49caa693be5
parent 6137 4720145f848b
equal deleted inserted replaced
10125:b1d2398f2655 10178:e49caa693be5
   805 		style &= ~windowstyle;
   805 		style &= ~windowstyle;
   806 		style |= directstyle;
   806 		style |= directstyle;
   807 	} else {
   807 	} else {
   808 #ifndef NO_CHANGEDISPLAYSETTINGS
   808 #ifndef NO_CHANGEDISPLAYSETTINGS
   809 		if ( (prev_flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {
   809 		if ( (prev_flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {
   810 			ChangeDisplaySettings(NULL, 0);
   810 			ChangeDisplaySettings(NULL, CDS_FULLSCREEN);
   811 		}
   811 		}
   812 #endif
   812 #endif
   813 		if ( flags & SDL_NOFRAME ) {
   813 		if ( flags & SDL_NOFRAME ) {
   814 			style &= ~windowstyle;
   814 			style &= ~windowstyle;
   815 			style |= directstyle;
   815 			style |= directstyle;
  1184 			if ( grab_palette ) {
  1184 			if ( grab_palette ) {
  1185 				DIB_ReleaseStaticColors(SDL_Window);
  1185 				DIB_ReleaseStaticColors(SDL_Window);
  1186 			}
  1186 			}
  1187 #ifndef NO_CHANGEDISPLAYSETTINGS
  1187 #ifndef NO_CHANGEDISPLAYSETTINGS
  1188 			if ( this->screen->flags & SDL_FULLSCREEN ) {
  1188 			if ( this->screen->flags & SDL_FULLSCREEN ) {
  1189 				ChangeDisplaySettings(NULL, 0);
  1189 				ChangeDisplaySettings(NULL, CDS_FULLSCREEN);
  1190 				ShowWindow(SDL_Window, SW_HIDE);
  1190 				ShowWindow(SDL_Window, SW_HIDE);
  1191 			}
  1191 			}
  1192 #endif
  1192 #endif
  1193 			if ( this->screen->flags & SDL_OPENGL ) {
  1193 			if ( this->screen->flags & SDL_OPENGL ) {
  1194 				WIN_GL_ShutDown(this);
  1194 				WIN_GL_ShutDown(this);