}
-void ColorFade::EnterState(Application &c, SDL_Surface *screen) {
+void ColorFade::OnEnterState(Application &c, SDL_Surface *screen) {
ctrl = &c;
if (leadIn > 0) {
timer = GraphicsTimers().StartCountdown(leadIn);
}
}
-void ColorFade::ExitState(Application &, SDL_Surface *screen) {
+void ColorFade::OnExitState(Application &, SDL_Surface *screen) {
if (blinds) {
SDL_FreeSurface(blinds);
blinds = 0;
}
}
-void ColorFade::ResumeState(Application &ctrl, SDL_Surface *screen) {
+void ColorFade::OnResumeState(Application &ctrl, SDL_Surface *screen) {
UpdateBlinds(screen->w, screen->h);
}
-void ColorFade::PauseState(Application &ctrl, SDL_Surface *screen) {
+void ColorFade::OnPauseState(Application &ctrl, SDL_Surface *screen) {
}
-void ColorFade::Resize(int width, int height) {
- slave->Resize(width, height);
+void ColorFade::OnResize(int width, int height) {
+ slave->OnResize(width, height);
UpdateBlinds(width, height);
}