X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgraphics%2FColorFade.cpp;h=b33ee0838540d36e46ea9a119fda3c9a2508b4fa;hb=2ccc2369d32fb680a3047519d79c17de34c4e10a;hp=e83edbb1c0ccf4313c9f1820723b3b968abf2869;hpb=123ca72f7a92d2529c6f9b6bdff3f13d6f0223c9;p=l2e.git diff --git a/src/graphics/ColorFade.cpp b/src/graphics/ColorFade.cpp index e83edbb..b33ee08 100644 --- a/src/graphics/ColorFade.cpp +++ b/src/graphics/ColorFade.cpp @@ -30,7 +30,7 @@ ColorFade::ColorFade(State *slave, Uint32 color, int duration, bool in, bool int } -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); @@ -40,24 +40,24 @@ void ColorFade::EnterState(Application &c, SDL_Surface *screen) { } } -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); }