diff options
author | Johannes Schickel | 2006-04-10 17:32:04 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-04-10 17:32:04 +0000 |
commit | a06a28fa97f4c278166cfa83fac87977b3a0f864 (patch) | |
tree | 86454bf7f0809c249c912836638c6aa24a20210f /gui/theme.h | |
parent | 520a7be91f31ee89b66af9faad17edf02a699ce7 (diff) | |
download | scummvm-rg350-a06a28fa97f4c278166cfa83fac87977b3a0f864.tar.gz scummvm-rg350-a06a28fa97f4c278166cfa83fac87977b3a0f864.tar.bz2 scummvm-rg350-a06a28fa97f4c278166cfa83fac87977b3a0f864.zip |
Implements saving the color cache to a file (much faster startup for custom effect + less memory while gui isn't shown)
svn-id: r21766
Diffstat (limited to 'gui/theme.h')
-rw-r--r-- | gui/theme.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gui/theme.h b/gui/theme.h index 9a58afe57e..bf13ad72eb 100644 --- a/gui/theme.h +++ b/gui/theme.h @@ -26,6 +26,7 @@ #include "common/system.h" #include "common/rect.h" #include "common/str.h" +#include "common/file.h" #include "common/config-file.h" #include "graphics/surface.h" @@ -426,9 +427,15 @@ private: Common::String _shadingEpxressionR, _shadingEpxressionG, _shadingEpxressionB; uint _numCacheColors; + bool _usingColorCache; OverlayColor *_colorCacheTable; void setupColorCache(); - + void clearColorCache(); + + Common::String cacheFileName(); + bool loadCacheFile(); + bool createCacheFile(); + typedef OverlayColor (ThemeNew::*InactiveDialogCallback)(OverlayColor col, bool cache); InactiveDialogCallback _dialogShadingCallback; |