Update dispserv_x11.c

Update dispserv_x11.c

New backporch for super res

Update dispserv_x11.c

Update dispserv_x11.c

Update dispserv_x11.c

update backporch & menu naming

Update menu_setting.c

Update menu_setting.c

Update menu_setting.c

Update menu_setting.c
This commit is contained in:
alphanu1 2019-02-12 21:44:07 +00:00
parent 5cc89160e0
commit 45dae75333
2 changed files with 13 additions and 8 deletions

View File

@ -166,8 +166,6 @@ static bool x11_display_server_set_resolution(void *data,
video_monitor_set_refresh_rate(hz);
/* following code is the mode line generator */
hsp = (width * 1.140) - (xoffset*4);
hfp = width * 1.055;
pwidth = width;
if (height < 400 && width > 400)
@ -184,7 +182,18 @@ static bool x11_display_server_set_resolution(void *data,
if (roundw < 1.20)
roundw = 1.34;
hbp = width * roundw - 8;
if (width < 700)
{
hfp = width * 1.055;
hbp = width * roundw - 8;
}else {
hfp = (width * 1.055)+8;
hbp = (width * roundw) + (width /16);
xoffset = xoffset*2;
}
hsp = (width * 1.140) - (xoffset*4);
hmax = hbp;
if (height < 241)

View File

@ -1196,11 +1196,7 @@ static void setting_get_string_representation_crt_switch_resolution_super(
if (*setting->value.target.unsigned_integer == 0)
strlcpy(s, "NATIVE", len);
else
snprintf(s, len, "%d", *setting->value.target.unsigned_integer);
/* TO DO make 1 read as DYNAMIC */
if (*setting->value.target.unsigned_integer == 1)
else if (*setting->value.target.unsigned_integer == 1)
strlcpy(s, "DYNAMIC", len);
else
snprintf(s, len, "%d", *setting->value.target.unsigned_integer);