diff --git a/src/core.c b/src/core.c index ba41c7730..2f48762b0 100644 --- a/src/core.c +++ b/src/core.c @@ -2877,7 +2877,7 @@ static bool InitGraphicsDevice(int width, int height) // Set viewport parameters static void SetupViewport(void) { -#if defined(__APPLE__) +#if defined(PLATFORM_DESKTOP) // Get framebuffer size of current window // NOTE: Required to handle HighDPI display correctly on OSX because framebuffer // is automatically reasized to adapt to new DPI.