mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-05 02:58:04 +00:00
incorporated center adjust for Linux
This commit is contained in:
parent
7a6a4998c7
commit
4dc6cf2fb4
@ -144,6 +144,7 @@ static bool x11_display_server_set_resolution(void *data,
|
||||
int vmax = 0;
|
||||
int pdefault = 8;
|
||||
int pwidth = 0;
|
||||
int x_offset = center;
|
||||
float roundw = 0.0f;
|
||||
float roundh = 0.0f;
|
||||
float pixel_clock = 0;
|
||||
@ -160,7 +161,7 @@ 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;
|
||||
hsp = (width * 1.140) + x_offset;
|
||||
hfp = width * 1.055;
|
||||
pwidth = width;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user