diff options
Diffstat (limited to 'src/gui/minimap.h')
-rw-r--r-- | src/gui/minimap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/minimap.h b/src/gui/minimap.h index 0ec13e67..a3b14729 100644 --- a/src/gui/minimap.h +++ b/src/gui/minimap.h @@ -54,12 +54,18 @@ class Minimap : public Window void setMapImage(Image *img); /** + * Sets the map proportion (1 means 1 tile to one pixel, .5 means 2 tiles to 1 pixel, etc.) + */ + void setProportion(float proportion) { mProportion = proportion; } + + /** * Draws the minimap. */ void draw(gcn::Graphics *graphics); private: Image *mMapImage; + float mProportion; }; extern Minimap *minimap; |