mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 15:13:55 +00:00
remove unused code fixed x11 build error
This commit is contained in:
parent
c3334d86b3
commit
10a550d9da
@ -45,8 +45,6 @@ double sys_scale() {
|
|||||||
char *displayname = NULL;
|
char *displayname = NULL;
|
||||||
int scr = 0; /* Screen number */
|
int scr = 0; /* Screen number */
|
||||||
|
|
||||||
if( (NULL == x) || (NULL == y)){ return ; }
|
|
||||||
|
|
||||||
dpy = XOpenDisplay (displayname);
|
dpy = XOpenDisplay (displayname);
|
||||||
xres = ((((double) DisplayWidth(dpy, scr)) * 25.4) /
|
xres = ((((double) DisplayWidth(dpy, scr)) * 25.4) /
|
||||||
((double) DisplayWidthMM(dpy, scr)));
|
((double) DisplayWidthMM(dpy, scr)));
|
||||||
|
Loading…
Reference in New Issue
Block a user