comparison src/video/SDL_video.c @ 5266:595814f561f7

There is only one width and height for the window. If those are changed during the course of a fullscreen mode change, then they'll stay that size when returning to windowed mode.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 11 Feb 2011 20:49:13 -0800
parents f908e06b3c96
children b530ef003506
comparison
equal deleted inserted replaced
5265:62d2bc792002 5266:595814f561f7
1080 1080
1081 if (_this->SetWindowFullscreen) { 1081 if (_this->SetWindowFullscreen) {
1082 _this->SetWindowFullscreen(_this, window); 1082 _this->SetWindowFullscreen(_this, window);
1083 } 1083 }
1084 display->fullscreen_window = NULL; 1084 display->fullscreen_window = NULL;
1085
1086 /* Generate a mode change events here */
1087 SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESIZED,
1088 window->windowed.w, window->windowed.h);
1089 } 1085 }
1090 1086
1091 SDL_Window * 1087 SDL_Window *
1092 SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags) 1088 SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
1093 { 1089 {