mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Compile fixes for mingw32
This commit is contained in:
parent
dff1564395
commit
cb58d2dcfa
2
src/framework/thirdparty/apngloader.cpp
vendored
2
src/framework/thirdparty/apngloader.cpp
vendored
@ -917,7 +917,7 @@ void write_IDATs(std::ostream& f, unsigned char* data, unsigned int length, unsi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void save_png(std::stringstream& f, int width, int height, int channels, unsigned char *pixels)
|
void save_png(std::stringstream& f, unsigned int width, unsigned int height, int channels, unsigned char *pixels)
|
||||||
{
|
{
|
||||||
unsigned int bpp = 4;
|
unsigned int bpp = 4;
|
||||||
unsigned char coltype = 0;
|
unsigned char coltype = 0;
|
||||||
|
@ -278,7 +278,7 @@ void UIManager::onWidgetDestroy(const UIWidgetPtr& widget)
|
|||||||
if(m_checkEvent && !m_checkEvent->isExecuted())
|
if(m_checkEvent && !m_checkEvent->isExecuted())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_checkEvent = g_eventDispatcher.scheduleEvent([] {
|
m_checkEvent = g_eventDispatcher.scheduleEvent([this] {
|
||||||
g_lua.collectGarbage();
|
g_lua.collectGarbage();
|
||||||
UIWidgetList backupList = m_destroyedWidgets;
|
UIWidgetList backupList = m_destroyedWidgets;
|
||||||
m_destroyedWidgets.clear();
|
m_destroyedWidgets.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user