Skip to content

Commit

Permalink
Fix MSVC05 compilation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanvb authored Jun 17, 2024
1 parent 2ca9737 commit a0ab688
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gfx/display_servers/dispserv_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a0ab688

Please sign in to comment.