From e4d14ef02b52ab898beb539e00cb22cd921b8141 Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Thu, 19 Jan 2006 18:08:28 +0000 Subject: [PATCH] Rollback 1.28 change, but only for UpdateRects function this time --- src/video/xbios/SDL_xbios.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/video/xbios/SDL_xbios.c b/src/video/xbios/SDL_xbios.c index fa1caed4a..443919fa8 100644 --- a/src/video/xbios/SDL_xbios.c +++ b/src/video/xbios/SDL_xbios.c @@ -724,17 +724,8 @@ static void XBIOS_UpdateRects(_THIS, int numrects, SDL_Rect *rects) 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;ipitch * rects[i].y; source += x1; - destination = destscr; + destination = XBIOS_screens[XBIOS_fbnum]; destination += XBIOS_pitch * rects[i].y; destination += x1;