atari:xbios: Keep non offseted value SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Fri, 22 Aug 2014 13:50:40 +0200
branchSDL-1.2
changeset 9110d0300b8ab099
parent 9109 8b2109994b82
child 9111 54c4bea81a55
atari:xbios: Keep non offseted value
src/video/xbios/SDL_xbios.c
     1.1 --- a/src/video/xbios/SDL_xbios.c	Fri Aug 22 12:40:49 2014 +0200
     1.2 +++ b/src/video/xbios/SDL_xbios.c	Fri Aug 22 13:50:40 2014 +0200
     1.3 @@ -623,7 +623,7 @@
     1.4  	if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) {
     1.5  		XBIOS_fbnum ^= 1;
     1.6  		if ((XBIOS_current->flags & XBIOSMODE_C2P) == 0) {
     1.7 -			surface->pixels=((Uint8 *) XBIOS_screens[XBIOS_fbnum]) + surface->offset;
     1.8 +			surface->pixels=XBIOS_screens[XBIOS_fbnum];
     1.9  		}
    1.10  	}
    1.11  }
    1.12 @@ -658,7 +658,7 @@
    1.13  	if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) {
    1.14  		XBIOS_fbnum ^= 1;
    1.15  		if ((XBIOS_current->flags & XBIOSMODE_C2P) == 0) {
    1.16 -			surface->pixels=((Uint8 *) XBIOS_screens[XBIOS_fbnum]) + surface->offset;
    1.17 +			surface->pixels=XBIOS_screens[XBIOS_fbnum];
    1.18  		}
    1.19  	}
    1.20