From e53dba73eca8238775df52e4177d83eb0a473de2 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 22 Mar 2012 17:07:36 +0100 Subject: menu: keep frame in container before the current frame was stored in application, now every container could keep a frame and paint it before all other content --- src/menu/application.cpp | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'src/menu/application.cpp') diff --git a/src/menu/application.cpp b/src/menu/application.cpp index 28862a8c..7e6c9216 100644 --- a/src/menu/application.cpp +++ b/src/menu/application.cpp @@ -70,25 +70,6 @@ namespace usdx return instance; } - void Application::draw(void) - { - if (frame) { - frame->repaint(); - } - - Container::draw(); - } - - const Frame *Application::get_current_frame(void) const - { - return frame; - } - - void Application::set_current_frame(Frame* new_frame) - { - frame = new_frame; - } - void Application::main_loop(SDL_Surface* display) { SDL_Event event; @@ -97,8 +78,7 @@ namespace usdx DrawableControl *p = new SoftwareMousePointer(this, &event_manager); p->repaint(); - LoadingFrame frame; - set_current_frame(&frame); + LoadingFrame frame(this); running = true; while (running) { -- cgit v1.2.3