diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-10-22 22:56:46 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-10-22 22:56:46 +0000 |
commit | c9f618b5c50f759cf172d8e37063ef56e05812cf (patch) | |
tree | ec9730e9c09025873b09e0582349d0c2816d01f4 /src/gui/playerbox.cpp | |
parent | aa870fe2d34c1cc93a4cc2b6c9a09ed136176b0d (diff) | |
download | mana-c9f618b5c50f759cf172d8e37063ef56e05812cf.tar.gz mana-c9f618b5c50f759cf172d8e37063ef56e05812cf.tar.bz2 mana-c9f618b5c50f759cf172d8e37063ef56e05812cf.tar.xz mana-c9f618b5c50f759cf172d8e37063ef56e05812cf.zip |
Merged changesets 3631, 3645 and 3648 from trunk to 0.0 branch.
Diffstat (limited to 'src/gui/playerbox.cpp')
-rw-r--r-- | src/gui/playerbox.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/playerbox.cpp b/src/gui/playerbox.cpp index 95366bee..e3f5b540 100644 --- a/src/gui/playerbox.cpp +++ b/src/gui/playerbox.cpp @@ -80,7 +80,11 @@ PlayerBox::draw(gcn::Graphics *graphics) if (mPlayer) { // Draw character - mPlayer->draw(static_cast<Graphics*>(graphics), 40, 42); + int x, y, bs; + bs = getBorderSize(); + x = getWidth() / 2 - 16 + bs; + y = getHeight() / 2 + bs; + mPlayer->draw(static_cast<Graphics*>(graphics), x, y); } } |