]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/SelectSpell.cpp
alternate approach to battle animation
[l2e.git] / src / battle / states / SelectSpell.cpp
index a13d8fc822e3596fecb99676f9f5b6212fd072e6..f8b00e5b97cb53c8e651d071627813a3ee599ab8 100644 (file)
@@ -111,7 +111,7 @@ void SelectSpell::Render(SDL_Surface *screen) {
 void SelectSpell::RenderFrame(SDL_Surface *screen, const Vector<int> &offset) {
        const Frame *frame(battle->Res().selectFrame);
        Point<int> position(frame->BorderWidth(), frame->BorderHeight());
-       int width(battle->BackgroundWidth() - 2 * frame->BorderWidth());
+       int width(battle->Width() - 2 * frame->BorderWidth());
        int height(battle->Res().normalFont->CharHeight() * 13);
        frame->Draw(screen, position + offset, width, height);
 }