From 4cd489f23321d3e168a55df7471ec8ccb5a91be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 3 Nov 2013 13:54:25 +0100 Subject: [PATCH] Platform: implicitly call redraw() after screen swapping. --- src/Platform/ScreenedApplication.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Platform/ScreenedApplication.hpp b/src/Platform/ScreenedApplication.hpp index 329070da5..6cf03ddb9 100644 --- a/src/Platform/ScreenedApplication.hpp +++ b/src/Platform/ScreenedApplication.hpp @@ -44,12 +44,14 @@ template void BasicScreen::mouseMoveEvent(MouseM template BasicScreenedApplication& BasicScreenedApplication::addScreen(BasicScreen& screen) { Containers::LinkedList>::insert(&screen); if(frontScreen() == &screen) screen.focusEvent(); + Application::redraw(); return *this; } template BasicScreenedApplication& BasicScreenedApplication::removeScreen(BasicScreen& screen) { screen.blurEvent(); Containers::LinkedList>::erase(&screen); + Application::redraw(); return *this; } @@ -60,6 +62,7 @@ template BasicScreenedApplication& BasicScreened frontScreen()->blurEvent(); Containers::LinkedList>::move(&screen, frontScreen()); screen.focusEvent(); + Application::redraw(); return *this; }