diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-11-01 14:38:59 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-11-01 14:38:59 +0000 |
commit | 3d85803d9a43c779f522a936df068a24ca6f7f2d (patch) | |
tree | 1c84a78bb39e1a282c0b7e194c0fed16c510ba8a /src | |
parent | f6f8b2f885145d4cacf7a6c42d88b6a39f71b366 (diff) | |
download | mana-3d85803d9a43c779f522a936df068a24ca6f7f2d.tar.gz mana-3d85803d9a43c779f522a936df068a24ca6f7f2d.tar.bz2 mana-3d85803d9a43c779f522a936df068a24ca6f7f2d.tar.xz mana-3d85803d9a43c779f522a936df068a24ca6f7f2d.zip |
Merged revisions 4110-4111,4116 via svnmerge from
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/branches/0.0
........
r4110 | peaveydk | 2008-04-17 00:57:49 +0200 (Thu, 17 Apr 2008) | 1 line
Fix shop list not to scroll to top when selling. Redo of revision 3801 due to changes in guichan 0.8.0.
........
r4111 | peaveydk | 2008-04-17 02:08:28 +0200 (Thu, 17 Apr 2008) | 1 line
fixes for r4110, have to account for index value and add 1 to get the right scroll position.
........
r4116 | peaveydk | 2008-04-17 14:48:43 +0200 (Thu, 17 Apr 2008) | 1 line
Draw NPCs in yellow on minimap and skip drawing of warps. Based on idea by leeor_net.
........
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/minimap.cpp | 7 | ||||
-rw-r--r-- | src/gui/sell.cpp | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index ca6f4fd7..5f768609 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -77,9 +77,10 @@ void Minimap::draw(gcn::Graphics *graphics) { Window::draw(graphics); - if (mMapImage != NULL) + if (mMapImage) { - static_cast<Graphics*>(graphics)->drawImage(mMapImage, getPadding(), getTitleBarHeight()); + static_cast<Graphics*>(graphics)->drawImage( + mMapImage, getPadding(), getTitleBarHeight()); } Beings &beings = beingManager->getAll(); @@ -110,7 +111,7 @@ void Minimap::draw(gcn::Graphics *graphics) break; default: - break; + continue; } const int offset = (dotSize - 1) / 2; diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index e101ad39..37626155 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -171,6 +171,11 @@ void SellDialog::action(const gcn::ActionEvent &event) mShopItemList->setSelected(-1); mShopItems->getShop()->erase( mShopItems->getShop()->begin() + selectedItem); + + gcn::Rectangle scroll; + scroll.y = mShopItemList->getRowHeight() * (selectedItem + 1); + scroll.height = mShopItemList->getRowHeight(); + mShopItemList->showPart(scroll); } else { |