1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

add some more debug logging to dd_EnumDisplayModes

This commit is contained in:
FunkyFr3sh 2024-03-22 04:36:30 +01:00
parent 978946a5d9
commit d69a56c0d0
2 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,7 @@
#define VERSION_MAJOR 6
#define VERSION_MINOR 3
#define VERSION_BUILD 0
#define VERSION_REVISION 2
#define VERSION_REVISION 3
#define VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION
#define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION)

View File

@ -65,6 +65,8 @@ HRESULT dd_EnumDisplayModes(
{
max_w = reg_m.dmPelsWidth;
max_h = reg_m.dmPelsHeight;
TRACE(" max_w=%u, max_h=%u\n", reg_m.dmPelsWidth, reg_m.dmPelsHeight);
}
if (g_config.stronghold_hack && max_w && (max_w % 8))
@ -317,7 +319,10 @@ HRESULT dd_EnumDisplayModes(
m.dmPelsHeight = resolutions[i].cy;
if (ChangeDisplaySettings(&m, CDS_TEST) != DISP_CHANGE_SUCCESSFUL)
{
TRACE(" SKIPPED: %ux%u\n", m.dmPelsWidth, m.dmPelsHeight);
continue;
}
}
memset(&s, 0, sizeof(s));