summaryrefslogtreecommitdiffstats
path: root/client/screen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/screen.cpp')
-rw-r--r--client/screen.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/screen.cpp b/client/screen.cpp
index b33560ee..5d138a1c 100644
--- a/client/screen.cpp
+++ b/client/screen.cpp
@@ -30,9 +30,10 @@ class UpdateEvent: public Event {
public:
UpdateEvent(int screen) : _screen (screen) {}
- virtual void responce(Application& application)
+ virtual void response(AbstractProcessLoop& events_loop)
{
- RedScreen* screen = application.find_screen(_screen);
+ Application* app = static_cast<Application*>(events_loop.get_owner());
+ RedScreen* screen = app->find_screen(_screen);
if (screen) {
screen->update();
}