changeset 1256:3cfb04f6e726

Rollback 1.28 change, but only for UpdateRects function this time
author Patrice Mandin <patmandin@gmail.com>
date Thu, 19 Jan 2006 18:08:28 +0000
parents 70e33f3b62e8
children 448a9a64537b
files src/video/xbios/SDL_xbios.c
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/xbios/SDL_xbios.c	Thu Jan 19 12:05:14 2006 +0000
+++ b/src/video/xbios/SDL_xbios.c	Thu Jan 19 18:08:28 2006 +0000
@@ -724,17 +724,8 @@
 	surface = this->screen;
 
 	if ((surface->format->BitsPerPixel) == 8) {
-		void *destscr;
-		int destx;
 		int i;
 
-		/* Center on destination screen */
-		destscr = XBIOS_screens[XBIOS_fbnum];
-		destscr += XBIOS_pitch * ((XBIOS_height - surface->h) >> 1);
-		destx = (XBIOS_width - surface->w) >> 1;
-		destx &= ~15;
-		destscr += destx;
-
 		for (i=0;i<numrects;i++) {
 			void *source,*destination;
 			int x1,x2;
@@ -749,7 +740,7 @@
 			source += surface->pitch * rects[i].y;
 			source += x1;
 
-			destination = destscr;
+			destination = XBIOS_screens[XBIOS_fbnum];
 			destination += XBIOS_pitch * rects[i].y;
 			destination += x1;