mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Merge pull request #9094 from alphanu1/master
Updates Porches and Super width
This commit is contained in:
commit
5dca2234cd
@ -180,6 +180,7 @@ static bool x11_display_server_set_resolution(void *data,
|
|||||||
int vbp = 0;
|
int vbp = 0;
|
||||||
int hmax = 0;
|
int hmax = 0;
|
||||||
int vmax = 0;
|
int vmax = 0;
|
||||||
|
int x_offset = center;
|
||||||
int pdefault = 8;
|
int pdefault = 8;
|
||||||
int pwidth = 0;
|
int pwidth = 0;
|
||||||
float roundw = 0.0f;
|
float roundw = 0.0f;
|
||||||
@ -198,35 +199,17 @@ static bool x11_display_server_set_resolution(void *data,
|
|||||||
video_monitor_set_refresh_rate(hz);
|
video_monitor_set_refresh_rate(hz);
|
||||||
|
|
||||||
/* following code is the mode line generator */
|
/* following code is the mode line generator */
|
||||||
pwidth = width;
|
|
||||||
|
|
||||||
if (height < 400 && width > 400)
|
|
||||||
pwidth = width / 2;
|
|
||||||
|
|
||||||
roundw = roundf((float)pwidth / (float)height * 100) / 100;
|
|
||||||
|
|
||||||
if (height > width)
|
|
||||||
roundw = roundf((float)height / (float)width * 100) / 100;
|
|
||||||
|
|
||||||
if (roundw > 1.35)
|
|
||||||
roundw = 1.25;
|
|
||||||
|
|
||||||
if (roundw < 1.20)
|
|
||||||
roundw = 1.34;
|
|
||||||
|
|
||||||
if (width < 700)
|
if (width < 700)
|
||||||
{
|
{
|
||||||
hfp = width * 1.055;
|
hfp = (width * 1.033);
|
||||||
hbp = width * roundw - 8;
|
hbp = width * 1.225;
|
||||||
}
|
}else {
|
||||||
else
|
hfp = (width * 1.033) + (width / 112);
|
||||||
{
|
hbp = (width * 1.225) + (width /58);
|
||||||
hfp = (width * 1.055) + (width / 40);
|
|
||||||
hbp = (width * roundw) + (width /24);
|
|
||||||
xoffset = xoffset*2;
|
xoffset = xoffset*2;
|
||||||
}
|
}
|
||||||
|
|
||||||
hsp = (width * 1.140) - (xoffset*4);
|
hsp = (width * 1.117) - (xoffset*4);
|
||||||
|
|
||||||
hmax = hbp;
|
hmax = hbp;
|
||||||
|
|
||||||
|
@ -247,12 +247,12 @@ int crt_compute_dynamic_width(int width)
|
|||||||
#if defined(HAVE_VIDEOCORE)
|
#if defined(HAVE_VIDEOCORE)
|
||||||
p_clock = 32000000;
|
p_clock = 32000000;
|
||||||
#else
|
#else
|
||||||
p_clock = 15000000;
|
p_clock = 21000000;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (i = 0; i < 10; i++)
|
for (i = 0; i < 10; i++)
|
||||||
{
|
{
|
||||||
dynamic_width = (width*1.5)*i;
|
dynamic_width = width*i;
|
||||||
if ((dynamic_width * min_height * ra_core_hz) > p_clock)
|
if ((dynamic_width * min_height * ra_core_hz) > p_clock)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user