src/video/wincommon/SDL_wingl.c
branchSDL-1.2
changeset 4082 01dbf7134045
parent 4043 5c890883360f
child 4159 a1b03ba2fcd0
equal deleted inserted replaced
4081:10be2cee175d 4082:01dbf7134045
    48 		style = GetWindowLong(SDL_Window, GWL_STYLE);
    48 		style = GetWindowLong(SDL_Window, GWL_STYLE);
    49 		GetWindowRect(SDL_Window, &rect);
    49 		GetWindowRect(SDL_Window, &rect);
    50 		DestroyWindow(SDL_Window);
    50 		DestroyWindow(SDL_Window);
    51 		WIN_FlushMessageQueue();
    51 		WIN_FlushMessageQueue();
    52 
    52 
       
    53 		SDL_resizing = 1;
    53 		SDL_Window = CreateWindow(SDL_Appname, SDL_Appname,
    54 		SDL_Window = CreateWindow(SDL_Appname, SDL_Appname,
    54 		                          style,
    55 		                          style,
    55 		                          rect.left, rect.top,
    56 		                          rect.left, rect.top,
    56 		                          (rect.right-rect.left)+1,
    57 		                          (rect.right-rect.left)+1,
    57 		                          (rect.top-rect.bottom)+1,
    58 		                          (rect.bottom-rect.top)+1,
    58 		                          NULL, NULL, SDL_Instance, NULL);
    59 		                          NULL, NULL, SDL_Instance, NULL);
    59 		WIN_FlushMessageQueue();
    60 		WIN_FlushMessageQueue();
       
    61 		SDL_resizing = 0;
    60 
    62 
    61 		if ( SDL_Window ) {
    63 		if ( SDL_Window ) {
    62 			this->SetCaption(this, this->wm_title, this->wm_icon);
    64 			this->SetCaption(this, this->wm_title, this->wm_icon);
    63 		} else {
    65 		} else {
    64 			SDL_SetError("Couldn't create window");
    66 			SDL_SetError("Couldn't create window");