Additional fix for "Failed to activate window context" log messages

This commit is contained in:
2015-08-21 10:50:26 -04:00
committed by Celtic Minstrel
parent 5ae96f2c45
commit 95559b5a51
2 changed files with 2 additions and 0 deletions

View File

@@ -322,6 +322,7 @@ static void handleUpdateWhileScrolling(volatile bool& doneScrolling, int refresh
sf::sleep(sf::milliseconds(10));
redraw_screen(refresh);
}
mainPtr.setActive(false);
}
// TODO: Pass the event object around instead of keeping a global one

View File

@@ -556,6 +556,7 @@ static void handleUpdateWhileScrolling(volatile bool& doneScrolling) {
if(overall_mode < MODE_MAIN_SCREEN || overall_mode == MODE_EDIT_TYPES)
set_up_terrain_buttons(false);
}
mainPtr.setActive(false);
}
void Mouse_Pressed() {