mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 15:37:55 -05:00
fix technically improper C++ code
This commit is contained in:
parent
d55523a1ed
commit
c9d1f6c5c8
1 changed files with 3 additions and 2 deletions
|
@ -39,7 +39,8 @@ Isle::Isle()
|
||||||
rect.m_right = 639;
|
rect.m_right = 639;
|
||||||
rect.m_bottom = 479;
|
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_videoParam.flags().Enable16Bit(MxDirectDraw::GetPrimaryBitDepth() == 16);
|
||||||
|
|
||||||
m_windowHandle = NULL;
|
m_windowHandle = NULL;
|
||||||
|
@ -481,7 +482,7 @@ MxResult Isle::setupWindow(HINSTANCE hInstance)
|
||||||
m_cursorBusy = LoadCursorA(hInstance, MAKEINTRESOURCE(ISLE_BUSY));
|
m_cursorBusy = LoadCursorA(hInstance, MAKEINTRESOURCE(ISLE_BUSY));
|
||||||
m_cursorNo = LoadCursorA(hInstance, MAKEINTRESOURCE(ISLE_NO));
|
m_cursorNo = LoadCursorA(hInstance, MAKEINTRESOURCE(ISLE_NO));
|
||||||
wndclass.hInstance = hInstance;
|
wndclass.hInstance = hInstance;
|
||||||
wndclass.hbrBackground = GetStockObject(BLACK_BRUSH);
|
wndclass.hbrBackground = (HBRUSH) GetStockObject(BLACK_BRUSH);
|
||||||
wndclass.lpszClassName = WNDCLASS_NAME;
|
wndclass.lpszClassName = WNDCLASS_NAME;
|
||||||
|
|
||||||
if (!RegisterClassA(&wndclass)) {
|
if (!RegisterClassA(&wndclass)) {
|
||||||
|
|
Loading…
Reference in a new issue