Commit cde83fe7 authored by Patrice Mandin's avatar Patrice Mandin

Rollback 1.28 change, but only for UpdateRects function this time

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401259
parent 90d632bc
...@@ -724,17 +724,8 @@ static void XBIOS_UpdateRects(_THIS, int numrects, SDL_Rect *rects) ...@@ -724,17 +724,8 @@ static void XBIOS_UpdateRects(_THIS, int numrects, SDL_Rect *rects)
surface = this->screen; surface = this->screen;
if ((surface->format->BitsPerPixel) == 8) { if ((surface->format->BitsPerPixel) == 8) {
void *destscr;
int destx;
int i; 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++) { for (i=0;i<numrects;i++) {
void *source,*destination; void *source,*destination;
int x1,x2; int x1,x2;
...@@ -749,7 +740,7 @@ static void XBIOS_UpdateRects(_THIS, int numrects, SDL_Rect *rects) ...@@ -749,7 +740,7 @@ static void XBIOS_UpdateRects(_THIS, int numrects, SDL_Rect *rects)
source += surface->pitch * rects[i].y; source += surface->pitch * rects[i].y;
source += x1; source += x1;
destination = destscr; destination = XBIOS_screens[XBIOS_fbnum];
destination += XBIOS_pitch * rects[i].y; destination += XBIOS_pitch * rects[i].y;
destination += x1; destination += x1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment