From b91949ebe7ccb6bed9b11d6229c4da8c20899c2c Mon Sep 17 00:00:00 2001 From: neonloop Date: Thu, 12 Aug 2021 16:24:52 +0000 Subject: Adds screenshot function --- plat_sdl.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plat_sdl.c') diff --git a/plat_sdl.c b/plat_sdl.c index 9467f5d..4726535 100644 --- a/plat_sdl.c +++ b/plat_sdl.c @@ -58,6 +58,15 @@ static void *fb_flip(void) return screen->pixels; } +void *plat_prepare_screenshot(int *w, int *h, int *bpp) +{ + if (w) *w = SCREEN_WIDTH; + if (h) *h = SCREEN_HEIGHT; + if (bpp) *bpp = SCREEN_BPP; + + return g_menuscreen_ptr; +} + void plat_video_menu_enter(int is_rom_loaded) { } -- cgit v1.2.3