Skip to content
Browse files

Ensure that a frontend is created

  • Loading branch information...
1 parent 45db87e commit 9e3ab3c13541f64f5aaaf9164afe5675feef9085 @zao committed Feb 26, 2012
Showing with 4 additions and 6 deletions.
  1. +4 −6 SeekbarWindow.cc
View
10 SeekbarWindow.cc
@@ -240,7 +240,7 @@ namespace wave
break;
case config::frontend_gdi:
console::info("Seekbar: taking GDI path.");
- dynamic_frontend = true;
+ dynamic_frontend = true;
present_interval = 50;
break;
default:
@@ -265,17 +265,15 @@ namespace wave
initializing_graphics = true;
console::complain("Seekbar: frontend creation failed", e);
settings.active_frontend_kind = config::frontend_gdi;
-
console::info("Seekbar: taking GDI path.");
+ fe->frontend = create_frontend(settings.active_frontend_kind);
present_interval = 50;
}
-
- try_get_data();
-
- fe->frontend->on_state_changed((visual_frontend::state)~0);
if (fe->frontend)
{
+ try_get_data();
+ fe->frontend->on_state_changed((visual_frontend::state)~0);
repaint_timer_id = SetTimer(REPAINT_TIMER_ID, (DWORD)(present_interval / present_scale));
}
}

0 comments on commit 9e3ab3c

Please sign in to comment.
Something went wrong with that request. Please try again.