src/video/gem/SDL_gemvideo.c
branchSDL-1.2
changeset 11561 e990d334b75a
parent 11560 c267eabdc97f
child 11562 7b445007c968
equal deleted inserted replaced
11560:c267eabdc97f 11561:e990d334b75a
   798 			if (wind_calc(WC_BORDER, GEM_win_type, x2,y2,width,height, &x2,&y2,&w2,&h2)) {
   798 			if (wind_calc(WC_BORDER, GEM_win_type, x2,y2,width,height, &x2,&y2,&w2,&h2)) {
   799 				wind_set (GEM_handle, WF_CURRXYWH, x2,y2,w2,h2);
   799 				wind_set (GEM_handle, WF_CURRXYWH, x2,y2,w2,h2);
   800 			}
   800 			}
   801 		}
   801 		}
   802 
   802 
   803 		GEM_align_work_area(this, GEM_handle, 0);
   803 		GEM_align_work_area(this, GEM_handle, 0, 0);
   804 		GEM_fullscreen = SDL_FALSE;
   804 		GEM_fullscreen = SDL_FALSE;
   805 	}
   805 	}
   806 
   806 
   807 	/* Set up the new mode framebuffer */
   807 	/* Set up the new mode framebuffer */
   808 	current->w = width;
   808 	current->w = width;
   838 
   838 
   839 	/* We're done */
   839 	/* We're done */
   840 	return(current);
   840 	return(current);
   841 }
   841 }
   842 
   842 
   843 void GEM_align_work_area(_THIS, short windowid, int clear_pads)
   843 void GEM_align_work_area(_THIS, short windowid, int clear_pads, int iconified)
   844 {
   844 {
   845 	int new_x, new_w;
   845 	int new_x, new_w;
   846 
   846 
   847 	wind_get(windowid, WF_WORKXYWH, &GEM_work_x,&GEM_work_y,&GEM_work_w,&GEM_work_h);
   847 	wind_get(windowid, WF_WORKXYWH, &GEM_work_x,&GEM_work_y,&GEM_work_w,&GEM_work_h);
       
   848 	if (iconified) {
       
   849 		return;
       
   850 	}
   848 
   851 
   849 	/* Align work area on 16 pixels boundary (faster for bitplanes modes) */
   852 	/* Align work area on 16 pixels boundary (faster for bitplanes modes) */
   850 	new_x = GEM_work_x;
   853 	new_x = GEM_work_x;
   851 	if (new_x & 15) {
   854 	if (new_x & 15) {
   852 		new_x = (new_x|15)+1;
   855 		new_x = (new_x|15)+1;