From cb58d2dcfa9cc00ecc5814697d815d41498379ac Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Mon, 18 Jun 2012 13:05:16 -0300 Subject: [PATCH] Compile fixes for mingw32 --- src/framework/thirdparty/apngloader.cpp | 2 +- src/framework/ui/uimanager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/framework/thirdparty/apngloader.cpp b/src/framework/thirdparty/apngloader.cpp index fe6ec379..ad0932a2 100644 --- a/src/framework/thirdparty/apngloader.cpp +++ b/src/framework/thirdparty/apngloader.cpp @@ -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 char coltype = 0; diff --git a/src/framework/ui/uimanager.cpp b/src/framework/ui/uimanager.cpp index 9d8b21cb..db04f02a 100644 --- a/src/framework/ui/uimanager.cpp +++ b/src/framework/ui/uimanager.cpp @@ -278,7 +278,7 @@ void UIManager::onWidgetDestroy(const UIWidgetPtr& widget) if(m_checkEvent && !m_checkEvent->isExecuted()) return; - m_checkEvent = g_eventDispatcher.scheduleEvent([] { + m_checkEvent = g_eventDispatcher.scheduleEvent([this] { g_lua.collectGarbage(); UIWidgetList backupList = m_destroyedWidgets; m_destroyedWidgets.clear();