From ee2e9e25571908bc840b08ab954be05f357e7f58 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Thu, 9 Aug 2012 01:01:38 +0200 Subject: [PATCH 1/1] use font size for spell frame height calculation --- src/battle/states/SelectSpell.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.39.2