fixed: broken fs0, sram saves
[fceu.git] / drivers / cli / sdl-video.c
index 5ca240c..b805a8a 100644 (file)
@@ -35,7 +35,7 @@ static int inited=0;
 
 static int exs,eys,eefx;
 #define NWIDTH (256-((eoptions&EO_CLIPSIDES)?16:0))
-#define NOFFSET        (eoptions&EO_CLIPSIDES?8:0)
+#define NOFFSET        (32-8+(eoptions&EO_CLIPSIDES?8:0))
 
 static void CleanSurface(void)
 {
@@ -186,7 +186,7 @@ void BlitScreen(uint8 *XBuf)
   paletterefresh=0;
  }
 
- XBuf+=_sline*272;
+ XBuf+=_sline*320;
 
  if(SDL_MUSTLOCK(screen))
   SDL_LockSurface(screen);