Skip to content

Commit

Permalink
Fixed windows CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
vcaesar committed Jan 3, 2022
1 parent 337cd3f commit f6abdbe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions window/win_sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#endif

Bounds get_client(uintptr pid, uintptr isHwnd);
intptr scaleX();

double sys_scale(int32_t display_id) {
#if defined(IS_MACOSX)
Expand All @@ -31,13 +32,11 @@ double sys_scale(int32_t display_id) {

return pixelWidth / targetWidth;
#elif defined(USE_X11)
double xres;

char *displayname = NULL;
Display *dpy = XOpenDisplay(displayname);

int scr = 0; /* Screen number */
xres = ((((double) DisplayWidth(dpy, scr)) * 25.4) /
double xres = ((((double) DisplayWidth(dpy, scr)) * 25.4) /
((double) DisplayWidthMM(dpy, scr)));

// https://github.com/glfw/glfw/issues/1019#issuecomment-302772498
Expand Down

0 comments on commit f6abdbe

Please sign in to comment.