Merge pull request #7 from heuripedes/master

Skip uneeded scanlines (fixes #6)
This commit is contained in:
Twinaphex 2014-09-15 04:58:57 +02:00
commit 24f71aadae

View File

@ -1667,7 +1667,7 @@ void retro_run(void)
unsigned width = spec.DisplayRect.w & ~0x1;
unsigned height = spec.DisplayRect.h;
video_cb(surf->pixels16, width, height, FB_WIDTH << 1);
video_cb(surf->pixels16 + surf->pitchinpix * spec.DisplayRect.y, width, height, FB_WIDTH << 1);
video_frames++;
audio_frames += spec.SoundBufSize;