fix some warning use supplemental code

This commit is contained in:
vcaesar 2018-07-10 23:19:37 +08:00
parent cd0c3ed6d8
commit 5a52cdd37a

View File

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