]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/HeroStatus.cpp
added equipment in stats screen
[l2e.git] / src / menu / HeroStatus.cpp
index 6f8b341c6a754a4facbe628a15c2ea1902aa9107..2d038b1a3c69b247f661b4fe807c72c2a8ee5def 100644 (file)
@@ -28,24 +28,24 @@ HeroStatus::~HeroStatus() {
 
 
 int HeroStatus::Width() const {
-       return hero->BattleSprite()->Width() + res->statusFont->CharWidth() * 10;
+       return hero->BattleSprite()->Width() + res->statusFont->CharWidth() * 11;
 }
 
 int HeroStatus::Height() const {
-       return hero->BattleSprite()->Height();
+       return hero->BattleSprite()->Height() + res->statusFont->CharWidth();
 }
 
 
 void HeroStatus::Render(SDL_Surface *screen, const Vector<int> &offset) const {
        if (!hero) return;
 
-       hero->BattleSprite()->Draw(screen, position + offset, 0, 0);
+       hero->BattleSprite()->Draw(screen, offset, 0, 0);
 
        // for some reason, fonts are shifted by one pixel in the original
        Vector<int> nameOffset(
                        hero->BattleSprite()->Width(),
                        res->statusFont->CharHeight() * 7 / 8);
-       nameOffset += position + offset;
+       nameOffset += offset;
        res->statusFont->DrawString(hero->Name(), screen, nameOffset, 5);
 
        Vector<int> levelLabelOffset(nameOffset.X() + 6 * res->statusFont->CharWidth(), nameOffset.Y());