mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
added static function and Clean up
This commit is contained in:
parent
e0d84cd64c
commit
7aabf7f5e1
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user