diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-30 22:07:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-30 22:07:25 +0300 |
commit | 496e74aa95984380e4a36fe8d55d0839002d6f8f (patch) | |
tree | ca11d46b7d553ea175ee76d15081f5a731b6c269 /src/resources/map/maplayer.h | |
parent | 728223b59f09d1460a092b5fd467c3191fcb46c9 (diff) | |
download | mv-496e74aa95984380e4a36fe8d55d0839002d6f8f.tar.gz mv-496e74aa95984380e4a36fe8d55d0839002d6f8f.tar.bz2 mv-496e74aa95984380e4a36fe8d55d0839002d6f8f.tar.xz mv-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.h | 4 |
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); |