From f63968bea4476ee87c75d59fb6c9068bab9a78d2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 13 Sep 2011 22:43:43 +0300 Subject: Add check and improve draw speed in map. --- src/map.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index e9a9df593..3fa607116 100644 --- a/src/map.h +++ b/src/map.h @@ -160,11 +160,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 @@ -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(); -- cgit v1.2.3-60-g2f50