diff --git a/gfx/video_crt_switch.c b/gfx/video_crt_switch.c index 6bdd1c6fed..22f0cc3191 100644 --- a/gfx/video_crt_switch.c +++ b/gfx/video_crt_switch.c @@ -232,7 +232,7 @@ void crt_video_restore(void) static int crt_compute_dynamic_width(int width) { double p_clock = 18000000; - int min_heught = 261; + int min_height = 261; #if defined(HAVE_VIDEOCORE) double p_clock = 32000000; #endif @@ -241,9 +241,10 @@ static int crt_compute_dynamic_width(int width) { if (((width*0.5*i) * min_height * ra_core_hz) > p_clock) width = width*i; - break; + return width; + break; } - + return 0; } #if defined(HAVE_VIDEOCORE) diff --git a/gfx/video_crt_switch.h b/gfx/video_crt_switch.h index d73e79a2a7..20634f7ed6 100644 --- a/gfx/video_crt_switch.h +++ b/gfx/video_crt_switch.h @@ -33,6 +33,8 @@ void crt_aspect_ratio_switch(unsigned width, unsigned height); void crt_video_restore(void); +static int crt_compute_dynamic_width(int width); + RETRO_END_DECLS #endif