src/video/gem/SDL_gemvideo.c
branchSDL-1.2
changeset 11561 e990d334b75a
parent 11560 c267eabdc97f
child 11562 7b445007c968
     1.1 --- a/src/video/gem/SDL_gemvideo.c	Sat Sep 30 23:29:53 2017 +0200
     1.2 +++ b/src/video/gem/SDL_gemvideo.c	Sat Sep 30 23:40:38 2017 +0200
     1.3 @@ -800,7 +800,7 @@
     1.4  			}
     1.5  		}
     1.6  
     1.7 -		GEM_align_work_area(this, GEM_handle, 0);
     1.8 +		GEM_align_work_area(this, GEM_handle, 0, 0);
     1.9  		GEM_fullscreen = SDL_FALSE;
    1.10  	}
    1.11  
    1.12 @@ -840,11 +840,14 @@
    1.13  	return(current);
    1.14  }
    1.15  
    1.16 -void GEM_align_work_area(_THIS, short windowid, int clear_pads)
    1.17 +void GEM_align_work_area(_THIS, short windowid, int clear_pads, int iconified)
    1.18  {
    1.19  	int new_x, new_w;
    1.20  
    1.21  	wind_get(windowid, WF_WORKXYWH, &GEM_work_x,&GEM_work_y,&GEM_work_w,&GEM_work_h);
    1.22 +	if (iconified) {
    1.23 +		return;
    1.24 +	}
    1.25  
    1.26  	/* Align work area on 16 pixels boundary (faster for bitplanes modes) */
    1.27  	new_x = GEM_work_x;