From 496e74aa95984380e4a36fe8d55d0839002d6f8f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 30 Dec 2016 22:07:25 +0300 Subject: Improve map layers drawing. Skip same image or empty tiles. --- src/resources/map/maplayer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/resources/map/maplayer.h') 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); -- cgit v1.2.3-70-g09d2