From aa578df5ecaa95e4fa134d429ee425237a8f3b6f Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Sun, 3 Sep 2017 01:20:35 +0800 Subject: [PATCH] Cleanup --- src/drivers/libretro/libretro.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/drivers/libretro/libretro.c b/src/drivers/libretro/libretro.c index 45ca793..19f04d6 100644 --- a/src/drivers/libretro/libretro.c +++ b/src/drivers/libretro/libretro.c @@ -65,7 +65,6 @@ unsigned vblankscanlines = 0; unsigned overclock_state = -1; unsigned dendy = 0; - int FCEUnetplay; #ifdef PSP #include "pspgu.h" @@ -75,7 +74,6 @@ static uint16_t retro_palette[256]; #endif static uint16_t* fceu_video_out; - /* Some timing-related variables. */ static int soundo = 1; @@ -136,7 +134,6 @@ int FCEUD_SendData(void *data, uint32 len) #define BLUE_EXPAND 3 #endif - void FCEUD_SetPalette(unsigned char index, unsigned char r, unsigned char g, unsigned char b) { #ifdef FRONTEND_SUPPORTS_RGB565 @@ -771,7 +768,7 @@ void retro_get_system_av_info(struct retro_system_av_info *info) unsigned height = use_overscan ? 240 : (240 - 16); #else unsigned width = 256 - (overscan_h ? 16 : 0); - unsigned height = 240 - (overscan_v ? 16 : 0);0; + unsigned height = 240 - (overscan_v ? 16 : 0); #endif info->geometry.base_width = width; info->geometry.base_height = height; @@ -848,7 +845,8 @@ static void retro_set_custom_palette (void) /* Set variables for NTSC(1) / PAL(2) / Dendy(3) * Dendy has PAL framerate and resolution, but ~NTSC timings, - * and has 50 dummy scanlines to force 50 fps. */ + * and has 50 dummy scanlines to force 50 fps. + */ void FCEUD_RegionOverride(int region) { static int w = 0; @@ -908,7 +906,6 @@ void retro_reset(void) ResetNES(); } - typedef struct { unsigned retro; @@ -1349,7 +1346,6 @@ static void retro_run_blit(uint8_t *gfx) video_cb(fceu_video_out_ptr, width, height, pitch); #endif - } void retro_run(void)