mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
fix some warning use supplemental code
This commit is contained in:
parent
cd0c3ed6d8
commit
5a52cdd37a
1 changed files with 10 additions and 2 deletions
|
|
@ -19,7 +19,11 @@ int show_alert(const char *title, const char *msg,
|
|||
}
|
||||
|
||||
intptr scalex(){
|
||||
#if defined(IS_WINDOWS)
|
||||
#if defined(IS_MACOSX)
|
||||
return 0;
|
||||
#elif defined(USE_X11)
|
||||
return 0;
|
||||
#elif defined(IS_WINDOWS)
|
||||
// Get desktop dc
|
||||
HDC desktopDc = GetDC(NULL);
|
||||
// Get native resolution
|
||||
|
|
@ -30,7 +34,11 @@ intptr scalex(){
|
|||
}
|
||||
|
||||
intptr scaley(){
|
||||
#if defined(IS_WINDOWS)
|
||||
#if defined(IS_MACOSX)
|
||||
return 0;
|
||||
#elif defined(USE_X11)
|
||||
return 0;
|
||||
#elif defined(IS_WINDOWS)
|
||||
// Get desktop dc
|
||||
HDC desktopDc = GetDC(NULL);
|
||||
// Get native resolution
|
||||
|
|
|
|||
Loading…
Reference in a new issue