From 21aeb614b11ec0f32fd0b6bc10f60ecb4174f477 Mon Sep 17 00:00:00 2001 From: Spodi Date: Wed, 22 Nov 2023 22:36:49 +0100 Subject: [PATCH] Fix building on non-Windows --- src/graphic/Fast3D/gfx_sdl2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphic/Fast3D/gfx_sdl2.cpp b/src/graphic/Fast3D/gfx_sdl2.cpp index c9080508f..b39873d10 100644 --- a/src/graphic/Fast3D/gfx_sdl2.cpp +++ b/src/graphic/Fast3D/gfx_sdl2.cpp @@ -287,6 +287,7 @@ static int target_fps = 60; #define FRAME_INTERVAL_US_NUMERATOR 1000000 #define FRAME_INTERVAL_US_DENOMINATOR (target_fps) +#ifdef _WIN32 static LRESULT CALLBACK gfx_sdl_wnd_proc(HWND h_wnd, UINT message, WPARAM w_param, LPARAM l_param) { switch (message) { case WM_GETDPISCALEDSIZE: @@ -296,6 +297,7 @@ static LRESULT CALLBACK gfx_sdl_wnd_proc(HWND h_wnd, UINT message, WPARAM w_para } return 0; }; +#endif static void gfx_sdl_init(const char* game_name, const char* gfx_api_name, bool start_in_fullscreen, uint32_t width, uint32_t height, int32_t posX, int32_t posY) {