]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/HeroTag.cpp
switched some (x,y) and (w,h) pairs to vectors
[l2e.git] / src / battle / HeroTag.cpp
index 7938250910aa284a2f2f9946c9f685be5914088c..f94581b698a957b04e30e9625f385f5689a787d4 100644 (file)
@@ -26,12 +26,12 @@ const graphics::Sprite *HeroTag::HeroSprite() const {
        return battle->HeroAt(index).Sprite();
 }
 
-void HeroTag::Render(SDL_Surface *screen, int width, int height, Vector<int> position, bool active) const {
+void HeroTag::Render(SDL_Surface *screen, int width, int height, const Vector<int> &position, bool active) const {
        const Resources &r(battle->Res());
 
        // frame
        const Frame *frame(active ? r.activeHeroTagFrame : r.heroTagFrame);
-       Vector<int> frameOffset(frame->BorderWidth(), frame->BorderHeight());
+       Vector<int> frameOffset(frame->BorderSize());
        Vector<int> alignOffset((index % 2) ? 4 * r.heroTagFont->CharWidth() : 0, 0);
        frame->Draw(screen, position, width, height);