X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.cpp;h=0e0a3ee44ea7e916ef0cb026c8f1428bf5dca257;hb=abfa371d1d2c14052d4cbfc885b8383c6da7d499;hp=b8b5eb629d8601a2de2ce2a4a03044df9b28fcad;hpb=d97b7038c28058a76e7214e0dce0394fd8b67cff;p=l2e.git diff --git a/src/map/MapState.cpp b/src/map/MapState.cpp index b8b5eb6..0e0a3ee 100644 --- a/src/map/MapState.cpp +++ b/src/map/MapState.cpp @@ -43,7 +43,7 @@ MapState::MapState(GameConfig *g, Map *map) void MapState::OnEnterState(SDL_Surface *screen) { - camera.Resize(screen->w, screen->h); + OnResize(screen->w, screen->h); tileAnimation = GraphicsTimers().StartInterval(512); LoadMap(map); } @@ -53,7 +53,7 @@ void MapState::OnExitState(SDL_Surface *screen) { } void MapState::OnResumeState(SDL_Surface *screen) { - camera.Resize(screen->w, screen->h); + OnResize(screen->w, screen->h); } void MapState::OnPauseState(SDL_Surface *screen) {