src/video/gem/SDL_gemevents.c
changeset 964 d9209754ebee
parent 928 6c87754f324c
child 996 54bb19455081
     1.1 --- a/src/video/gem/SDL_gemevents.c	Sun Oct 31 13:15:33 2004 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Sat Nov 06 08:56:23 2004 +0000
     1.3 @@ -210,7 +210,9 @@
     1.4  			SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS);
     1.5  			break;
     1.6  		case WM_REDRAW:
     1.7 -			GEM_wind_redraw(this, message[3],&message[4]);
     1.8 +			if (!GEM_lock_redraw) {
     1.9 +				GEM_wind_redraw(this, message[3],&message[4]);
    1.10 +			}
    1.11  			break;
    1.12  		case WM_ICONIFY:
    1.13  		case WM_ALLICONIFY:
    1.14 @@ -240,8 +242,9 @@
    1.15  			break;
    1.16  		case WM_SIZED:
    1.17  			wind_set (message[3], WF_CURRXYWH, message[4], message[5], message[6], message[7]);
    1.18 +			wind_get (message[3], WF_WORKXYWH, &x2, &y2, &w2, &h2);
    1.19  			GEM_win_fulled = SDL_FALSE;		/* Cancel maximized flag */
    1.20 -			wind_get (message[3], WF_WORKXYWH, &x2, &y2, &w2, &h2);
    1.21 +			GEM_lock_redraw = SDL_TRUE;		/* Prevent redraw till buffers resized */
    1.22  			SDL_PrivateResize(w2, h2);
    1.23  			break;
    1.24  		case WM_FULLED:
    1.25 @@ -260,6 +263,7 @@
    1.26  				}
    1.27  				wind_set (message[3], WF_CURRXYWH, x, y, w, h);
    1.28  				wind_get (message[3], WF_WORKXYWH, &x2, &y2, &w2, &h2);
    1.29 +				GEM_lock_redraw = SDL_TRUE;		/* Prevent redraw till buffers resized */
    1.30  				SDL_PrivateResize(w2, h2);
    1.31  			}
    1.32  			break;