From cf3832fccefc00bcac4bc4d355568a66479fc926 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 18 Jul 2008 16:44:42 +0000 Subject: Background restoration in rendering pipeline. WIP. svn-id: r33097 --- gui/ThemeRenderer.h | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'gui/ThemeRenderer.h') 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 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; -- cgit v1.2.3