summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-30 22:07:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-30 22:07:25 +0300
commit496e74aa95984380e4a36fe8d55d0839002d6f8f (patch)
treeca11d46b7d553ea175ee76d15081f5a731b6c269 /src/resources/map/maplayer.h
parent728223b59f09d1460a092b5fd467c3191fcb46c9 (diff)
downloadplus-496e74aa95984380e4a36fe8d55d0839002d6f8f.tar.gz
plus-496e74aa95984380e4a36fe8d55d0839002d6f8f.tar.bz2
plus-496e74aa95984380e4a36fe8d55d0839002d6f8f.tar.xz
plus-496e74aa95984380e4a36fe8d55d0839002d6f8f.zip
Improve map layers drawing.
Skip same image or empty tiles.
Diffstat (limited to 'src/resources/map/maplayer.h')
-rw-r--r--src/resources/map/maplayer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h
index 2ddbb6aca..19f213ecc 100644
--- a/src/resources/map/maplayer.h
+++ b/src/resources/map/maplayer.h
@@ -169,6 +169,10 @@ class MapLayer final: public MemoryCounter, public ConfigListener
const int endX,
int &width) A_WARN_UNUSED A_NONNULL(1);
+ static int getEmptyTileDrawWidth(const TileInfo *restrict img,
+ const int endX)
+ A_WARN_UNUSED A_NONNULL(1);
+
void updateConditionTiles(MetaTile *restrict const metaTiles,
const int width,
const int height) restrict A_NONNULL(2);