mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-30 22:13:54 +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;
|
||||
int scr = 0; /* Screen number */
|
||||
|
||||
if( (NULL == x) || (NULL == y)){ return ; }
|
||||
|
||||
dpy = XOpenDisplay (displayname);
|
||||
xres = ((((double) DisplayWidth(dpy, scr)) * 25.4) /
|
||||
((double) DisplayWidthMM(dpy, scr)));
|
||||
|
Loading…
Reference in New Issue
Block a user