summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-13 13:56:12 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-13 13:58:33 +0300
commit0faf49cf2c2290e070f34c3f73973642a8e8c96c (patch)
tree69a4a9e14135b649f632130479461b386609703e /src/gui
parent0c53763c1eb42b9567459451ce47ef7239e151c6 (diff)
downloadplus-0faf49cf2c2290e070f34c3f73973642a8e8c96c.tar.gz
plus-0faf49cf2c2290e070f34c3f73973642a8e8c96c.tar.bz2
plus-0faf49cf2c2290e070f34c3f73973642a8e8c96c.tar.xz
plus-0faf49cf2c2290e070f34c3f73973642a8e8c96c.zip
fix code style and compilation warnings.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/minimap.cpp4
-rw-r--r--src/gui/minimap.h6
-rw-r--r--src/gui/widgets/characterdisplay.cpp6
3 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index 3e696fbda..15372b928 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -47,13 +47,13 @@ bool Minimap::mShow = true;
Minimap::Minimap() :
// TRANSLATORS: mini map window name
Window(_("Map"), false, nullptr, "map.xml"),
- mMapImage(nullptr),
mWidthProportion(0.5),
mHeightProportion(0.5),
- mCustomMapImage(false),
+ mMapImage(nullptr),
mMapOriginX(0),
mMapOriginY(0),
mTextPopup(new TextPopup),
+ mCustomMapImage(false),
mAutoResize(config.getBoolValue("autoresizeminimaps"))
{
setWindowName("Minimap");
diff --git a/src/gui/minimap.h b/src/gui/minimap.h
index 6efe8a786..fab7efea9 100644
--- a/src/gui/minimap.h
+++ b/src/gui/minimap.h
@@ -73,15 +73,15 @@ class Minimap final : public Window, public ConfigListener
void optionChanged(const std::string &name);
private:
- Image *mMapImage;
float mWidthProportion;
float mHeightProportion;
- static bool mShow;
- bool mCustomMapImage;
+ Image *mMapImage;
int mMapOriginX;
int mMapOriginY;
TextPopup *mTextPopup;
+ bool mCustomMapImage;
bool mAutoResize;
+ static bool mShow;
};
extern Minimap *minimap;
diff --git a/src/gui/widgets/characterdisplay.cpp b/src/gui/widgets/characterdisplay.cpp
index de0306f7c..7c5f84f61 100644
--- a/src/gui/widgets/characterdisplay.cpp
+++ b/src/gui/widgets/characterdisplay.cpp
@@ -99,17 +99,17 @@ void CharacterDisplay::update()
distributeResizedEvent();
}
-void CharacterDisplay::widgetHidden(const gcn::Event &event)
+void CharacterDisplay::widgetHidden(const gcn::Event &event A_UNUSED)
{
mPopup->setVisible(false);
}
-void CharacterDisplay::mouseExited(gcn::MouseEvent &event)
+void CharacterDisplay::mouseExited(gcn::MouseEvent &event A_UNUSED)
{
mPopup->setVisible(false);
}
-void CharacterDisplay::mouseMoved(gcn::MouseEvent &event)
+void CharacterDisplay::mouseMoved(gcn::MouseEvent &event A_UNUSED)
{
int mouseX = 0;
int mouseY = 0;