From b4064be09dcf98afe757d97102aa64b9be6f0e1a Mon Sep 17 00:00:00 2001 From: diablodiab <> Date: Mon, 21 Jun 2021 17:55:26 +0200 Subject: [PATCH] Update OSystem_RETRO according to base changes --- backends/platform/libretro/libretro_os.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backends/platform/libretro/libretro_os.cpp b/backends/platform/libretro/libretro_os.cpp index e62f2eb2c04e..b43d8dfcc7e8 100755 --- a/backends/platform/libretro/libretro_os.cpp +++ b/backends/platform/libretro/libretro_os.cpp @@ -539,15 +539,15 @@ class OSystem_RETRO : public EventsBaseBackend, public PaletteManager { _overlay.fillRect(Common::Rect(_overlay.w, _overlay.h), 0); } - virtual void grabOverlay(void *buf, int pitch) + virtual void grabOverlay(Graphics::Surface &surface) { const unsigned char *src = (unsigned char*)_overlay.pixels; - unsigned char *dst = (byte *)buf; + unsigned char *dst = (byte *)surface.getPixels();; unsigned i = RES_H_OVERLAY; do{ memcpy(dst, src, RES_W_OVERLAY << 1); - dst += pitch; + dst += surface.pitch; src += RES_W_OVERLAY << 1; }while(--i); }