From cf4bbca043e8f0ff82cdb2783c9add987a72e5a6 Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Mon, 6 Nov 2017 21:21:45 +0800 Subject: [PATCH] Fix initial scanline option issue ... ... wherein setting "Initial Scanline" core options removes bottom pixels instead. reference issue: https://github.com/libretro/beetle-saturn-libretro/issues/7 --- libretro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro.cpp b/libretro.cpp index 5f34e7db..c17d8e37 100644 --- a/libretro.cpp +++ b/libretro.cpp @@ -3074,7 +3074,7 @@ void retro_run(void) video_frames++; audio_frames += spec.SoundBufSize; - video_cb(surf->pixels, width, height, 704 * sizeof(uint32_t)); + video_cb(surf->pixels + surf->pitchinpix * spec.DisplayRect.y, width, height, 704 * sizeof(uint32_t)); int16_t *interbuf = (int16_t*)&IBuffer;