diff --git a/src/screenresolution.c b/src/screenresolution.c index 1071308..251c473 100644 --- a/src/screenresolution.c +++ b/src/screenresolution.c @@ -2,6 +2,8 @@ #ifndef _WIN32 #include +#else // _WIN32 +#include #endif // _WIN32 #include @@ -17,7 +19,7 @@ Dimension getScreenDimensions(void) free(d); free(s); #else // _WIN32 - Dimension dim = (Dimension) { 1920, 1080 }; + Dimension dim = (Dimension) { GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN) }; #endif // _WIN32 return dim;