Skip to content

Commit

Permalink
Update dispserv_x11.c
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alphanu1 committed Feb 12, 2019
1 parent 5cc8916 commit 45dae75
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
15 changes: 12 additions & 3 deletions gfx/display_servers/dispserv_x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
6 changes: 1 addition & 5 deletions menu/menu_setting.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 45dae75

Please sign in to comment.