# HG changeset patch # User Patrice Mandin # Date 1180210196 0 # Node ID b3b6f1a8d60a216fafdaa96539e88486f7195b6a # Parent 2409c20399c100a603d0842b0e9ed7bd2de9553d Simply resize existing window diff -r 2409c20399c1 -r b3b6f1a8d60a src/video/gem/SDL_gemvideo.c --- a/src/video/gem/SDL_gemvideo.c Sat May 26 19:44:37 2007 +0000 +++ b/src/video/gem/SDL_gemvideo.c Sat May 26 20:09:56 2007 +0000 @@ -778,17 +778,10 @@ /* 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); } }