added static function and Clean up

This commit is contained in:
alphanu1 2019-02-12 10:16:04 +00:00 committed by GitHub
parent e0d84cd64c
commit 7aabf7f5e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -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)

View File

@ -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