mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +00:00
modeline tweaks, better porches
This commit is contained in:
parent
50751e3f43
commit
cc1024ddd0
@ -98,36 +98,14 @@ static bool x11_set_resolution(void *data,
|
|||||||
char fbset[150];
|
char fbset[150];
|
||||||
char output[150];
|
char output[150];
|
||||||
|
|
||||||
hsp = width*1.10;
|
hsp = width*1.14;
|
||||||
|
|
||||||
/* set core refresh from hz */
|
/* set core refresh from hz */
|
||||||
video_monitor_set_refresh_rate(hz);
|
video_monitor_set_refresh_rate(hz);
|
||||||
|
|
||||||
/* following code is the mode line genorator */
|
/* following code is the mode line genorator */
|
||||||
|
hfp = width+24;
|
||||||
if (width < 599)
|
hbp = width*1.26;
|
||||||
{
|
|
||||||
hfp = width+8;
|
|
||||||
hbp = width*1.10;
|
|
||||||
}
|
|
||||||
if (width > 599 && width < 1919)
|
|
||||||
{
|
|
||||||
hfp = width+16;
|
|
||||||
hbp = width*1.18;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (width > 1919 && width < 2559)
|
|
||||||
{
|
|
||||||
hfp = width+32;
|
|
||||||
hbp = width*1.20;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (width > 2559)
|
|
||||||
{
|
|
||||||
hfp = width+48;
|
|
||||||
hbp = width*1.24;
|
|
||||||
}
|
|
||||||
|
|
||||||
hmax = hbp;
|
hmax = hbp;
|
||||||
|
|
||||||
if (height < 241)
|
if (height < 241)
|
||||||
@ -221,14 +199,14 @@ static bool x11_set_resolution(void *data,
|
|||||||
/* create progressive newmode from modline variables */
|
/* create progressive newmode from modline variables */
|
||||||
if (height < 300)
|
if (height < 300)
|
||||||
{
|
{
|
||||||
sprintf(xrandr,"xrandr --newmode \"%dx%d_%0.2f\" %0.2f %d %d %d %d %d %d %d %d -hsync -vsync", width, height, hz, pixel_clock, width, hfp, hsp, hbp, height, vfp, vsp, vbp);
|
sprintf(xrandr,"xrandr --newmode \"%dx%d_%0.2f\" %lf %d %d %d %d %d %d %d %d -hsync -vsync", width, height, hz, pixel_clock, width, hfp, hsp, hbp, height, vfp, vsp, vbp);
|
||||||
system(xrandr);
|
system(xrandr);
|
||||||
|
|
||||||
}
|
}
|
||||||
/* create interlaced newmode from modline variables */
|
/* create interlaced newmode from modline variables */
|
||||||
if (height > 300)
|
if (height > 300)
|
||||||
{
|
{
|
||||||
sprintf(xrandr,"xrandr --newmode \"%dx%d_%0.2f\" %0.2f %d %d %d %d %d %d %d %d interlace -hsync -vsync", width, height, hz, pixel_clock, width, hfp, hsp, hbp, height, vfp, vsp, vbp);
|
sprintf(xrandr,"xrandr --newmode \"%dx%d_%0.2f\" %lf %d %d %d %d %d %d %d %d interlace -hsync -vsync", width, height, hz, pixel_clock, width, hfp, hsp, hbp, height, vfp, vsp, vbp);
|
||||||
system(xrandr);
|
system(xrandr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user