summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-13 22:43:43 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-13 22:43:43 +0300
commitf63968bea4476ee87c75d59fb6c9068bab9a78d2 (patch)
tree6f6617f35c0c5bca28015f7cb4bd682ef7c3e6b7 /src/map.h
parent6bd4fff31e0b44b8b71876250c626fe8c15b4105 (diff)
downloadmanaplus-f63968bea4476ee87c75d59fb6c9068bab9a78d2.tar.gz
manaplus-f63968bea4476ee87c75d59fb6c9068bab9a78d2.tar.bz2
manaplus-f63968bea4476ee87c75d59fb6c9068bab9a78d2.tar.xz
manaplus-f63968bea4476ee87c75d59fb6c9068bab9a78d2.zip
Add check and improve draw speed in map.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/map.h b/src/map.h
index e9a9df593..3fa607116 100644
--- a/src/map.h
+++ b/src/map.h
@@ -161,11 +161,6 @@ class MapLayer: public ConfigListener
void setTile(int index, Image *img) { mTiles[index] = img; }
/**
- * Get tile image, with x and y in layer coordinates.
- */
- Image *getTile(int x, int y) const;
-
- /**
* Draws this layer to the given graphics context. The coordinates are
* expected to be in map range and will be translated to local layer
* coordinates and clipped to the layer's dimensions.
@@ -223,7 +218,7 @@ class MapLayer: public ConfigListener
void optionChanged(const std::string &value);
- int getTileDrawWidth(int tilePtr, int endX, int &width) const;
+ int getTileDrawWidth(Image *img, int endX, int &width) const;
// void initTileInfo();