src/video/gem/SDL_gemevents.c
branchSDL-1.2
changeset 11560 c267eabdc97f
parent 11559 a330adcd0490
child 11561 e990d334b75a
     1.1 --- a/src/video/gem/SDL_gemevents.c	Sat Sep 30 22:06:30 2017 +0200
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Sat Sep 30 23:29:53 2017 +0200
     1.3 @@ -288,26 +288,7 @@
     1.4  	}
     1.5  
     1.6  	if (update_work_area) {
     1.7 -		wind_get (message[3], WF_WORKXYWH, &GEM_work_x, &GEM_work_y, &GEM_work_w, &GEM_work_h);
     1.8 -
     1.9 -		/* Align work area on 16 pixels boundary (faster for bitplanes modes) */
    1.10 -		if (align_work_area) {
    1.11 -			int aligned_x;
    1.12 -			short pxy[4];
    1.13 -
    1.14 -			aligned_x = GEM_work_x;
    1.15 -			if (aligned_x & 15) {
    1.16 -				aligned_x = (aligned_x|15)+1;
    1.17 -
    1.18 -				pxy[0] = GEM_work_x;
    1.19 -				pxy[1] = GEM_work_y;
    1.20 -				pxy[2] = aligned_x - 1;
    1.21 -				pxy[3] = pxy[1] + GEM_work_h - 1;
    1.22 -				GEM_clear_rect(this, pxy);
    1.23 -			}
    1.24 -			GEM_work_w -= (aligned_x - GEM_work_x);
    1.25 -			GEM_work_x = aligned_x;
    1.26 -		}
    1.27 +		GEM_align_work_area(this, message[3], 1);
    1.28  
    1.29  		if (sdl_resize) {
    1.30  			SDL_PrivateResize(GEM_work_w, GEM_work_h);