comparison src/video/xbios/SDL_xbios.c @ 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 cbdb2c156aca
children c9b51268668f
comparison
equal deleted inserted replaced
1255:70e33f3b62e8 1256:3cfb04f6e726
722 SDL_Surface *surface; 722 SDL_Surface *surface;
723 723
724 surface = this->screen; 724 surface = this->screen;
725 725
726 if ((surface->format->BitsPerPixel) == 8) { 726 if ((surface->format->BitsPerPixel) == 8) {
727 void *destscr;
728 int destx;
729 int i; 727 int i;
730
731 /* Center on destination screen */
732 destscr = XBIOS_screens[XBIOS_fbnum];
733 destscr += XBIOS_pitch * ((XBIOS_height - surface->h) >> 1);
734 destx = (XBIOS_width - surface->w) >> 1;
735 destx &= ~15;
736 destscr += destx;
737 728
738 for (i=0;i<numrects;i++) { 729 for (i=0;i<numrects;i++) {
739 void *source,*destination; 730 void *source,*destination;
740 int x1,x2; 731 int x1,x2;
741 732
747 738
748 source = surface->pixels; 739 source = surface->pixels;
749 source += surface->pitch * rects[i].y; 740 source += surface->pitch * rects[i].y;
750 source += x1; 741 source += x1;
751 742
752 destination = destscr; 743 destination = XBIOS_screens[XBIOS_fbnum];
753 destination += XBIOS_pitch * rects[i].y; 744 destination += XBIOS_pitch * rects[i].y;
754 destination += x1; 745 destination += x1;
755 746
756 /* Convert chunky to planar screen */ 747 /* Convert chunky to planar screen */
757 SDL_Atari_C2pConvert( 748 SDL_Atari_C2pConvert(