Skip to content

Commit

Permalink
Update OSystem_RETRO according to base changes
Browse files Browse the repository at this point in the history
  • Loading branch information
diablodiab committed Jun 21, 2021
1 parent 7d1c17d commit b4064be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backends/platform/libretro/libretro_os.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b4064be

Please sign in to comment.