aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeRenderer.h
diff options
context:
space:
mode:
authorVicent Marti2008-07-18 16:44:42 +0000
committerVicent Marti2008-07-18 16:44:42 +0000
commitcf3832fccefc00bcac4bc4d355568a66479fc926 (patch)
treeace15180977a0eb254a35b1c29e82eaded92f63b /gui/ThemeRenderer.h
parent4645e706a8c62fb291efb987dca9fa82394139ee (diff)
downloadscummvm-rg350-cf3832fccefc00bcac4bc4d355568a66479fc926.tar.gz
scummvm-rg350-cf3832fccefc00bcac4bc4d355568a66479fc926.tar.bz2
scummvm-rg350-cf3832fccefc00bcac4bc4d355568a66479fc926.zip
Background restoration in rendering pipeline. WIP.
svn-id: r33097
Diffstat (limited to 'gui/ThemeRenderer.h')
-rw-r--r--gui/ThemeRenderer.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/gui/ThemeRenderer.h b/gui/ThemeRenderer.h
index 11728f8e6e..347cbafcc9 100644
--- a/gui/ThemeRenderer.h
+++ b/gui/ThemeRenderer.h
@@ -56,6 +56,7 @@ struct WidgetDrawData {
/** Sets whether the widget is cached beforehand. */
bool _cached;
+ bool _buffer;
/** Texture where the cached widget is stored. */
Graphics::Surface *_surfaceCache;
@@ -156,17 +157,12 @@ public:
void enable();
void disable();
- void closeAllDialogs() {
- _dialogCount = 0;
- _cachedDialog = 0;
- }
+ void closeAllDialogs() {}
-
- void updateScreen(); //{}
+ void updateScreen();
void resetDrawArea() {}
- void openDialog(bool top);// {}
- bool closeDialog();// {}
+ void openDialog(bool top);
/** Font management */
const Graphics::Font *getFont(FontStyle font) const { return _font; }
@@ -220,6 +216,10 @@ public:
bool loadTheme(Common::String themeName);
void setGraphicsMode(GraphicsMode mode);
+ void finishBuffering() {
+ _buffering = false;
+ }
+
protected:
template<typename PixelType> void screenInit(bool backBuffer);
@@ -310,8 +310,7 @@ protected:
Graphics::Surface *_screen;
Graphics::Surface *_backBuffer;
- uint32 _dialogCount;
- uint32 _cachedDialog;
+ bool _buffering;
int _bytesPerPixel;
GraphicsMode _graphicsMode;