X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FSelectHero.cpp;h=597faead6b2ccc7a24b6526f3ff573f3dec21430;hb=HEAD;hp=a46333a6e9dc70c123f6f787d57a1503b06b51d0;hpb=cc3d698b8c1ad09d7a3f9e3f28bc84e0ac1735ea;p=l2e.git diff --git a/src/menu/SelectHero.cpp b/src/menu/SelectHero.cpp index a46333a..597faea 100644 --- a/src/menu/SelectHero.cpp +++ b/src/menu/SelectHero.cpp @@ -8,11 +8,11 @@ #include "../common/GameConfig.h" #include "../common/GameState.h" #include "../common/Hero.h" -#include "../geometry/Vector.h" +#include "../math/Vector.h" #include "../graphics/Sprite.h" using app::Input; -using geometry::Vector; +using math::Vector; namespace menu { @@ -105,7 +105,7 @@ const Resources &SelectHero::Res() const { } -void SelectHero::UpdateWorld(float deltaT) { +void SelectHero::UpdateWorld(Uint32 deltaT) { } @@ -118,10 +118,11 @@ void SelectHero::Render(SDL_Surface *screen) { } void SelectHero::RenderCursor(SDL_Surface *screen) const { + const Vector offset((screen->w - partyMenu->Width()) / 2, (screen->h - partyMenu->Height()) / 2); Vector position( 0, Game().state->party[cursor]->BattleSprite()->Height()); position += partyMenu->StatusOffset(cursor); - Res().heroCursor->Draw(screen, position); + Res().heroCursor->Draw(screen, position + offset); } }