From a0ab688f8688e0f828ddfa91159a834fc83b84e5 Mon Sep 17 00:00:00 2001 From: zoltanvb <101990835+zoltanvb@users.noreply.github.com> Date: Mon, 17 Jun 2024 22:49:04 +0200 Subject: [PATCH] Fix MSVC05 compilation failure --- gfx/display_servers/dispserv_win32.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gfx/display_servers/dispserv_win32.c b/gfx/display_servers/dispserv_win32.c index 81c8883d61ca..13fff6adecd0 100644 --- a/gfx/display_servers/dispserv_win32.c +++ b/gfx/display_servers/dispserv_win32.c @@ -367,8 +367,8 @@ static void *win32_display_server_get_resolution_list( curr_refreshrate = dm.dmDisplayFrequency; #if _WIN32_WINNT >= 0x0500 curr_orientation = dm.dmDisplayOrientation; -#endif curr_interlaced = (dm.dmDisplayFlags & DM_INTERLACED) ? true : false; +#endif } for (i = 0; win32_get_video_output(&dm, i, sizeof(dm)); i++) @@ -409,7 +409,11 @@ static void *win32_display_server_get_resolution_list( conf[j].refreshrate_float = 0.0f; conf[j].idx = j; conf[j].current = false; +#if _WIN32_WINNT >= 0x0500 conf[j].interlaced = (dm.dmDisplayFlags & DM_INTERLACED) ? true : false; +#else + conf[j].interlaced = false; +#endif conf[j].dblscan = false; /* no flag for doublescan on this platform */ if ( (conf[j].width == curr_width)