From d4b65ccf980fe98fc324a2493c20624399e3ae64 Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Sat, 26 May 2007 20:10:49 +0000 Subject: [PATCH] Simply resize existing window --- src/video/gem/SDL_gemvideo.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/video/gem/SDL_gemvideo.c b/src/video/gem/SDL_gemvideo.c index e4176e85a..d18dc0bd1 100644 --- a/src/video/gem/SDL_gemvideo.c +++ b/src/video/gem/SDL_gemvideo.c @@ -805,19 +805,10 @@ GEM_SetVideoMode(_THIS, SDL_Surface * current, /* Open the window */ wind_open(GEM_handle, x2, y2, w2, h2); } else { - /* Resize window if needed, to fit asked video mode */ - if (modeflags & SDL_RESIZABLE) { - wind_get(GEM_handle, WF_WORKXYWH, &x2, &y2, &w2, &h2); - if ((w2 & 15) != 0) { - w2 = (w2 | 15) + 1; - } - if ((w2 != width) || (h2 != height)) { - if (wind_calc - (WC_BORDER, GEM_win_type, x2, y2, width, - height, &x2, &y2, &w2, &h2)) { - wind_set(GEM_handle, WF_CURRXYWH, x2, y2, w2, h2); - } - } + /* Resize window to fit asked video mode */ + wind_get (GEM_handle, WF_WORKXYWH, &x2,&y2,&w2,&h2); + if (wind_calc(WC_BORDER, GEM_win_type, x2,y2,width,height, &x2,&y2,&w2,&h2)) { + wind_set (GEM_handle, WF_CURRXYWH, x2,y2,w2,h2); } }