From: Daniel Karbach Date: Wed, 8 Aug 2012 23:01:38 +0000 (+0200) Subject: use font size for spell frame height calculation X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=ee2e9e25571908bc840b08ab954be05f357e7f58;p=l2e.git use font size for spell frame height calculation --- diff --git a/src/battle/states/SelectSpell.cpp b/src/battle/states/SelectSpell.cpp index be5c610..f50e059 100644 --- a/src/battle/states/SelectSpell.cpp +++ b/src/battle/states/SelectSpell.cpp @@ -87,8 +87,7 @@ void SelectSpell::RenderFrame(SDL_Surface *screen, const Vector &offset) { const Frame *frame(battle->Res().selectFrame); Point position(frame->BorderWidth(), frame->BorderHeight()); int width(battle->BackgroundWidth() - 2 * frame->BorderWidth()); - // TODO: replace with font height - int height(frame->BorderHeight() * 13); + int height(battle->Res().normalFont->CharHeight() * 13); frame->Draw(screen, position + offset, width, height); }