From c9d1f6c5c8e112943d29f646471a6c48f0379a06 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sat, 29 Apr 2023 14:40:27 -0700 Subject: [PATCH] fix technically improper C++ code --- app/isle.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/isle.cpp b/app/isle.cpp index fb045fc5..26cc68dc 100644 --- a/app/isle.cpp +++ b/app/isle.cpp @@ -39,7 +39,8 @@ Isle::Isle() rect.m_right = 639; rect.m_bottom = 479; - m_videoParam = MxVideoParam(rect, NULL, 1, MxVideoParamFlags()); + MxVideoParamFlags f; + m_videoParam = MxVideoParam(rect, NULL, 1, f); m_videoParam.flags().Enable16Bit(MxDirectDraw::GetPrimaryBitDepth() == 16); m_windowHandle = NULL; @@ -481,7 +482,7 @@ MxResult Isle::setupWindow(HINSTANCE hInstance) m_cursorBusy = LoadCursorA(hInstance, MAKEINTRESOURCE(ISLE_BUSY)); m_cursorNo = LoadCursorA(hInstance, MAKEINTRESOURCE(ISLE_NO)); wndclass.hInstance = hInstance; - wndclass.hbrBackground = GetStockObject(BLACK_BRUSH); + wndclass.hbrBackground = (HBRUSH) GetStockObject(BLACK_BRUSH); wndclass.lpszClassName = WNDCLASS_NAME; if (!RegisterClassA(&wndclass)) {