diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-21 23:25:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-21 23:25:05 +0300 |
commit | 3f2984d27b3ca03bac760b68db64db84cd75da49 (patch) | |
tree | 645e0e11a3af58b19dd4b78dc876d85a20b26933 /src/compoundsprite.h | |
parent | 4fb515c4d3ec3b2109c7e406ae3169c534854513 (diff) | |
download | manaplus-3f2984d27b3ca03bac760b68db64db84cd75da49.tar.gz manaplus-3f2984d27b3ca03bac760b68db64db84cd75da49.tar.bz2 manaplus-3f2984d27b3ca03bac760b68db64db84cd75da49.tar.xz manaplus-3f2984d27b3ca03bac760b68db64db84cd75da49.zip |
Add option to enable/disable software mode compoundsprite update delay.
Diffstat (limited to 'src/compoundsprite.h')
-rw-r--r-- | src/compoundsprite.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compoundsprite.h b/src/compoundsprite.h index aa90816c5..0490be8d8 100644 --- a/src/compoundsprite.h +++ b/src/compoundsprite.h @@ -121,6 +121,9 @@ public: bool updateNumber(unsigned num); + static void setEnableDelay(bool b) + { mEnableDelay = b; } + private: void redraw() const; @@ -146,6 +149,7 @@ private: bool mDisableBeingCaching; std::vector<Sprite*> mSprites; mutable int mNextRedrawTime; + static bool mEnableDelay; }; #endif // COMPOUNDSPRITE_H |