src/video/gem/SDL_gemevents.c
branchSDL-1.2
changeset 11555 a3426706e128
parent 11554 9694b296d6e6
child 11556 87e99e7708ce
     1.1 --- a/src/video/gem/SDL_gemevents.c	Sat Sep 30 15:43:28 2017 +0200
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Sat Sep 30 18:07:02 2017 +0200
     1.3 @@ -188,7 +188,6 @@
     1.4  static int do_messages(_THIS, short *message, short latest_msg_id)
     1.5  {
     1.6  	int quit;
     1.7 -	short x2,y2,w2,h2;
     1.8  
     1.9  	quit = 0;
    1.10  	switch (message[0]) {
    1.11 @@ -202,6 +201,7 @@
    1.12  			break;
    1.13  		case WM_MOVED:
    1.14  			wind_set(message[3],WF_CURRXYWH,message[4],message[5],message[6],message[7]);
    1.15 +			wind_get (message[3], WF_WORKXYWH, &GEM_work_x, &GEM_work_y, &GEM_work_w, &GEM_work_h);
    1.16  			break;
    1.17  		case WM_TOPPED:
    1.18  			wind_set(message[3],WF_TOP,message[4],0,0,0);
    1.19 @@ -219,7 +219,7 @@
    1.20  			break;
    1.21  		case WM_ICONIFY:
    1.22  		case WM_ALLICONIFY:
    1.23 -			wind_set(message[3],WF_ICONIFY,message[4],message[5],message[6],message[7]);
    1.24 +			wind_set (message[3],WF_ICONIFY,message[4],message[5],message[6],message[7]);
    1.25  			/* If we're active, make ourselves inactive */
    1.26  			if ( SDL_GetAppState() & SDL_APPACTIVE ) {
    1.27  				/* Send an internal deactivate event */
    1.28 @@ -235,7 +235,7 @@
    1.29  			}
    1.30  			break;
    1.31  		case WM_UNICONIFY:
    1.32 -			wind_set(message[3],WF_UNICONIFY,message[4],message[5],message[6],message[7]);
    1.33 +			wind_set (message[3],WF_UNICONIFY,message[4],message[5],message[6],message[7]);
    1.34  			/* If we're not active, make ourselves active */
    1.35  			if ( !(SDL_GetAppState() & SDL_APPACTIVE) ) {
    1.36  				/* Send an internal activate event */
    1.37 @@ -251,10 +251,10 @@
    1.38  			break;
    1.39  		case WM_SIZED:
    1.40  			wind_set (message[3], WF_CURRXYWH, message[4], message[5], message[6], message[7]);
    1.41 -			wind_get (message[3], WF_WORKXYWH, &x2, &y2, &w2, &h2);
    1.42 +			wind_get (message[3], WF_WORKXYWH, &GEM_work_x, &GEM_work_y, &GEM_work_w, &GEM_work_h);
    1.43  			GEM_win_fulled = SDL_FALSE;		/* Cancel maximized flag */
    1.44  			GEM_lock_redraw = SDL_TRUE;		/* Prevent redraw till buffers resized */
    1.45 -			SDL_PrivateResize(w2, h2);
    1.46 +			SDL_PrivateResize(GEM_work_w, GEM_work_h);
    1.47  			break;
    1.48  		case WM_FULLED:
    1.49  			{
    1.50 @@ -271,9 +271,9 @@
    1.51  					GEM_win_fulled = SDL_TRUE;
    1.52  				}
    1.53  				wind_set (message[3], WF_CURRXYWH, x, y, w, h);
    1.54 -				wind_get (message[3], WF_WORKXYWH, &x2, &y2, &w2, &h2);
    1.55 +				wind_get (message[3], WF_WORKXYWH, &GEM_work_x, &GEM_work_y, &GEM_work_w, &GEM_work_h);
    1.56  				GEM_lock_redraw = SDL_TRUE;		/* Prevent redraw till buffers resized */
    1.57 -				SDL_PrivateResize(w2, h2);
    1.58 +				SDL_PrivateResize(GEM_work_w, GEM_work_h);
    1.59  			}
    1.60  			break;
    1.61  		case WM_BOTTOMED: