From 885ed6f0e6e7ca1a8ac37c46e447de63b90c6804 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 22 Mar 2012 18:28:19 +0100 Subject: menu/application: simplified code --- src/menu/application.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/menu/application.cpp b/src/menu/application.cpp index 7e6c9216..30151169 100644 --- a/src/menu/application.cpp +++ b/src/menu/application.cpp @@ -75,9 +75,8 @@ namespace usdx SDL_Event event; EventManager event_manager; boost::thread event_thread(boost::bind(&EventManager::handle_events, &event_manager)); - DrawableControl *p = new SoftwareMousePointer(this, &event_manager); - p->repaint(); + SoftwareMousePointer pointer(this, &event_manager); LoadingFrame frame(this); running = true; -- cgit v1.2.3