incorporated center adjust for Linux

This commit is contained in:
alphanu1 2019-02-12 09:46:22 +00:00 committed by GitHub
parent 7a6a4998c7
commit 4dc6cf2fb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;