]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/SelectItem.cpp
renamed BattleState's background functions
[l2e.git] / src / battle / states / SelectItem.cpp
index 22369f304252d6cf7ff82cae5e86bc738ebe2621..0291b739c9c2746b5b17f6f72edf58fabb203f57 100644 (file)
@@ -110,7 +110,7 @@ void SelectItem::Render(SDL_Surface *screen) {
 void SelectItem::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);
 }