mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
make all calls to winapi format-agnostic (#1470)
This commit is contained in:
@@ -186,7 +186,7 @@ public:
|
||||
MxResult StartActionIfUnknown0x13c(MxDSAction& p_dsAction) { return m_unk0x13c ? Start(&p_dsAction) : SUCCESS; }
|
||||
void SetUnknown13c(MxBool p_unk0x13c) { m_unk0x13c = p_unk0x13c; }
|
||||
|
||||
void CloseMainWindow() { PostMessageA(m_windowHandle, WM_CLOSE, 0, 0); }
|
||||
void CloseMainWindow() { PostMessage(m_windowHandle, WM_CLOSE, 0, 0); }
|
||||
|
||||
// SYNTHETIC: LEGO1 0x10058b30
|
||||
// LegoOmni::`scalar deleting destructor'
|
||||
|
@@ -565,7 +565,7 @@ void EnableAnimations(MxBool p_enable)
|
||||
// FUNCTION: LEGO1 0x1003ef40
|
||||
void SetAppCursor(Cursor p_cursor)
|
||||
{
|
||||
PostMessageA(MxOmni::GetInstance()->GetWindowHandle(), WM_ISLE_SETCURSOR, p_cursor, 0);
|
||||
PostMessage(MxOmni::GetInstance()->GetWindowHandle(), WM_ISLE_SETCURSOR, p_cursor, 0);
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1003ef60
|
||||
|
@@ -398,7 +398,7 @@ void LegoVideoManager::DrawFPS()
|
||||
char zeros[8] = "0000.00";
|
||||
|
||||
if (m_unk0x528 == NULL) {
|
||||
m_arialFont = CreateFontA(
|
||||
m_arialFont = CreateFont(
|
||||
12,
|
||||
0,
|
||||
0,
|
||||
@@ -417,7 +417,7 @@ void LegoVideoManager::DrawFPS()
|
||||
|
||||
HDC dc = GetDC(NULL);
|
||||
SelectObject(dc, m_arialFont);
|
||||
GetTextExtentPointA(dc, zeros, strlen(zeros), &m_fpsSize);
|
||||
GetTextExtentPoint(dc, zeros, strlen(zeros), &m_fpsSize);
|
||||
ReleaseDC(NULL, dc);
|
||||
|
||||
m_unk0x528 = m_displaySurface->FUN_100bc8b0(m_fpsSize.cx, m_fpsSize.cy);
|
||||
@@ -493,11 +493,11 @@ void LegoVideoManager::DrawFPS()
|
||||
SetTextColor(dc, RGB(255, 255, 0));
|
||||
SetBkColor(dc, RGB(0, 0, 0));
|
||||
SetBkMode(dc, OPAQUE);
|
||||
GetTextExtentPoint32A(dc, buffer, nb, &m_fpsSize);
|
||||
GetTextExtentPoint32(dc, buffer, nb, &m_fpsSize);
|
||||
|
||||
RECT rect;
|
||||
SetRect(&rect, 0, 0, m_fpsSize.cx, m_fpsSize.cy);
|
||||
ExtTextOutA(dc, 0, 0, ETO_OPAQUE, &rect, buffer, nb, NULL);
|
||||
ExtTextOut(dc, 0, 0, ETO_OPAQUE, &rect, buffer, nb, NULL);
|
||||
m_unk0x528->ReleaseDC(dc);
|
||||
m_unk0x550 = 1.f;
|
||||
}
|
||||
|
Reference in New Issue
Block a user