From 2a1d2e3588c1ecd5e0d49f4fba452f4f63a92ea5 Mon Sep 17 00:00:00 2001 From: Elisha Riedlinger Date: Mon, 4 Sep 2023 10:13:42 -0700 Subject: [PATCH] Update logging --- ddraw/IDirectDrawX.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ddraw/IDirectDrawX.cpp b/ddraw/IDirectDrawX.cpp index 373e8f59..041b2d0b 100644 --- a/ddraw/IDirectDrawX.cpp +++ b/ddraw/IDirectDrawX.cpp @@ -1738,7 +1738,7 @@ HRESULT m_IDirectDrawX::SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBP { if (!dwWidth || !dwHeight || (dwBPP != 8 && dwBPP != 16 && dwBPP != 24 && dwBPP != 32)) { - LOG_LIMIT(100, __FUNCTION__ << " Error: Invalid parameters. " << dwWidth << "x" << dwHeight << " " << dwBPP); + LOG_LIMIT(100, __FUNCTION__ << " Error: Invalid parameters: " << dwWidth << "x" << dwHeight << " " << dwBPP); return DDERR_INVALIDPARAMS; } @@ -1808,6 +1808,7 @@ HRESULT m_IDirectDrawX::SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBP // Mode not found if (!modeFound) { + LOG_LIMIT(100, __FUNCTION__ << " Error: Mode not found: " << dwWidth << "x" << dwHeight); return DDERR_INVALIDMODE; } }