Compile fixes for mingw32

This commit is contained in:
Eduardo Bart 2012-06-18 13:05:16 -03:00
parent dff1564395
commit cb58d2dcfa
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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();