Skip to content
Permalink
Browse files

Rollback 1.28 change, but only for UpdateRects function this time

  • Loading branch information
pmandin committed Jan 19, 2006
1 parent 6a94994 commit e4d14ef02b52ab898beb539e00cb22cd921b8141
Showing with 1 addition and 10 deletions.
  1. +1 −10 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;i<numrects;i++) {
void *source,*destination;
int x1,x2;
@@ -749,7 +740,7 @@ static void XBIOS_UpdateRects(_THIS, int numrects, SDL_Rect *rects)
source += surface->pitch * rects[i].y;
source += x1;

destination = destscr;
destination = XBIOS_screens[XBIOS_fbnum];
destination += XBIOS_pitch * rects[i].y;
destination += x1;

0 comments on commit e4d14ef

Please sign in to comment.