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 9110 d0300b8ab099
parent 9109 8b2109994b82
child 9111 54c4bea81a55
atari:xbios: Keep non offseted value
src/video/xbios/SDL_xbios.c
--- a/src/video/xbios/SDL_xbios.c	Fri Aug 22 12:40:49 2014 +0200
+++ b/src/video/xbios/SDL_xbios.c	Fri Aug 22 13:50:40 2014 +0200
@@ -623,7 +623,7 @@
 	if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) {
 		XBIOS_fbnum ^= 1;
 		if ((XBIOS_current->flags & XBIOSMODE_C2P) == 0) {
-			surface->pixels=((Uint8 *) XBIOS_screens[XBIOS_fbnum]) + surface->offset;
+			surface->pixels=XBIOS_screens[XBIOS_fbnum];
 		}
 	}
 }
@@ -658,7 +658,7 @@
 	if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) {
 		XBIOS_fbnum ^= 1;
 		if ((XBIOS_current->flags & XBIOSMODE_C2P) == 0) {
-			surface->pixels=((Uint8 *) XBIOS_screens[XBIOS_fbnum]) + surface->offset;
+			surface->pixels=XBIOS_screens[XBIOS_fbnum];
 		}
 	}