From: Daniel Karbach Date: Mon, 21 Jan 2013 20:14:31 +0000 (+0100) Subject: fixed position of menu hero cursor X-Git-Url: http://git.localhorst.tv/?p=l2e.git;a=commitdiff_plain;h=3701b454bd2c868a886ae5287d8209b714649344 fixed position of menu hero cursor --- diff --git a/src/menu/SelectHero.cpp b/src/menu/SelectHero.cpp index ffc21a3..597faea 100644 --- a/src/menu/SelectHero.cpp +++ b/src/menu/SelectHero.cpp @@ -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); } }