summaryrefslogtreecommitdiff
path: root/src/compoundsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-21 23:25:05 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-21 23:25:05 +0300
commit3f2984d27b3ca03bac760b68db64db84cd75da49 (patch)
tree645e0e11a3af58b19dd4b78dc876d85a20b26933 /src/compoundsprite.h
parent4fb515c4d3ec3b2109c7e406ae3169c534854513 (diff)
downloadmanaverse-3f2984d27b3ca03bac760b68db64db84cd75da49.tar.gz
manaverse-3f2984d27b3ca03bac760b68db64db84cd75da49.tar.bz2
manaverse-3f2984d27b3ca03bac760b68db64db84cd75da49.tar.xz
manaverse-3f2984d27b3ca03bac760b68db64db84cd75da49.zip
Add option to enable/disable software mode compoundsprite update delay.
Diffstat (limited to 'src/compoundsprite.h')
-rw-r--r--src/compoundsprite.h4
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