src/video/gem/SDL_gemevents.c
changeset 922 7b920743ce57
parent 919 4b1dd7691f05
child 926 83db694556eb
     1.1 --- a/src/video/gem/SDL_gemevents.c	Thu Aug 05 19:37:45 2004 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Thu Aug 05 19:40:23 2004 +0000
     1.3 @@ -193,6 +193,7 @@
     1.4  static int do_messages(_THIS, short *message)
     1.5  {
     1.6  	int quit, posted;
     1.7 +	short x2,y2,w2,h2;
     1.8  
     1.9  	quit=0;
    1.10  	switch (message[0]) {
    1.11 @@ -240,7 +241,8 @@
    1.12  		case WM_SIZED:
    1.13  			wind_set (message[3], WF_CURRXYWH, message[4], message[5], message[6], message[7]);
    1.14  			GEM_win_fulled = SDL_FALSE;		/* Cancel maximized flag */
    1.15 -			SDL_PrivateResize(message[6], message[7]);
    1.16 +			wind_get (message[3], WF_WORKXYWH, &x2, &y2, &w2, &h2);
    1.17 +			SDL_PrivateResize(w2, h2);
    1.18  			break;
    1.19  		case WM_FULLED:
    1.20  			{
    1.21 @@ -257,7 +259,8 @@
    1.22  					GEM_win_fulled = SDL_TRUE;
    1.23  				}
    1.24  				wind_set (message[3], WF_CURRXYWH, x, y, w, h);
    1.25 -				SDL_PrivateResize(w, h);
    1.26 +				wind_get (message[3], WF_WORKXYWH, &x2, &y2, &w2, &h2);
    1.27 +				SDL_PrivateResize(w2, h2);
    1.28  			}
    1.29  			break;
    1.30  		case WM_BOTTOMED: