From 1f49141c30205d13456bf214aba989fd0abb33e1 Mon Sep 17 00:00:00 2001 From: tbocek Date: Sat, 4 Apr 2020 11:59:27 +0200 Subject: [PATCH] Setting the width and height to 0 made the frameskip unusable on lakka/libretro with a XU4 with a MALI GPU T628. The result was that bad flickering happened when in frameskip mode. Once it reached 60fps, no flickering, below that flickering. This change fixes the flickering and calls video_cb with the correct height and width. --- libretro/LibretroGraphicsContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro/LibretroGraphicsContext.h b/libretro/LibretroGraphicsContext.h index 682adc0f7e..65b92d2a6a 100644 --- a/libretro/LibretroGraphicsContext.h +++ b/libretro/LibretroGraphicsContext.h @@ -52,7 +52,7 @@ public: void SetRenderTarget() override {} void SwapBuffers() override { if (gstate_c.skipDrawReason) { - video_cb(NULL, 0, 0, 0); + video_cb(NULL, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight, 0); } else { video_cb(RETRO_HW_FRAME_BUFFER_VALID, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight, 0); }