Fix win32 compile errors
This commit is contained in:
parent
7ece0ed8c7
commit
86c462eb4d
|
@ -236,7 +236,7 @@ void WIN32Window::terminate()
|
|||
}
|
||||
|
||||
if(m_instance) {
|
||||
if(!UnregisterClassA(g_app.getCompactName(), m_instance))
|
||||
if(!UnregisterClassA(g_app.getCompactName().c_str(), m_instance))
|
||||
g_logger.error("UnregisterClassA failed");
|
||||
m_instance = NULL;
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ void WIN32Window::internalCreateWindow()
|
|||
wc.hCursor = m_defaultCursor;
|
||||
wc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
|
||||
wc.lpszMenuName = NULL;
|
||||
wc.lpszClassName = g_app.getCompactName();
|
||||
wc.lpszClassName = g_app.getCompactName().c_str();
|
||||
|
||||
if(!RegisterClassA(&wc))
|
||||
g_logger.fatal("Failed to register the window class.");
|
||||
|
|
|
@ -392,8 +392,8 @@ void UIWidget::drawIcon(const Rect& screenCoords)
|
|||
drawRect.moveCenter(screenCoords.center());
|
||||
else
|
||||
drawRect.alignIn(screenCoords, m_iconAlign);
|
||||
drawRect.translate(m_iconOffset);
|
||||
}
|
||||
drawRect.translate(m_iconOffset);
|
||||
g_painter->setColor(m_iconColor);
|
||||
g_painter->drawTexturedRect(drawRect, m_icon, m_iconClipRect);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue