aboutsummaryrefslogtreecommitdiff
path: root/gui/InterfaceManager.h
diff options
context:
space:
mode:
authorVicent Marti2008-06-29 12:08:53 +0000
committerVicent Marti2008-06-29 12:08:53 +0000
commitf1173f52a24de56fd7ad91e5806917db8c11ee63 (patch)
tree9ebc022d02428390e3f8dd3dbc0f35182abd816f /gui/InterfaceManager.h
parent0e4cd6fc8ea9d72f4d07dbfeabcabf50d6d1c2bd (diff)
downloadscummvm-rg350-f1173f52a24de56fd7ad91e5806917db8c11ee63.tar.gz
scummvm-rg350-f1173f52a24de56fd7ad91e5806917db8c11ee63.tar.bz2
scummvm-rg350-f1173f52a24de56fd7ad91e5806917db8c11ee63.zip
Changes to rendering pipeline. WIP.
svn-id: r32837
Diffstat (limited to 'gui/InterfaceManager.h')
-rw-r--r--gui/InterfaceManager.h36
1 files changed, 7 insertions, 29 deletions
diff --git a/gui/InterfaceManager.h b/gui/InterfaceManager.h
index 779f9aab57..07fa0ea24e 100644
--- a/gui/InterfaceManager.h
+++ b/gui/InterfaceManager.h
@@ -220,33 +220,6 @@ public:
return _initOk && _themeOk;
}
- void refresh() {
- init();
- if (_enabled) {
- _system->showOverlay();
-// CursorMan.replaceCursorPalette(_cursorPal, 0, MAX_CURS_COLORS);
-// CursorMan.replaceCursor(_cursor, _cursorWidth, _cursorHeight, _cursorHotspotX, _cursorHotspotY, 255, _cursorTargetScale);
- }
- }
-
- void enable() {
- init();
- _system->showOverlay();
- _enabled = true;
- }
-
- void disable() {
- _system->hideOverlay();
- _enabled = false;
- }
-
- void deinit() {
- if (_initOk) {
- _system->hideOverlay();
- _initOk = false;
- }
- }
-
bool loadTheme() {
ConfMan.registerDefault("gui_theme", "default");
Common::String style(ConfMan.get("gui_theme"));
@@ -300,6 +273,11 @@ protected:
return (_themeOk == false || _needThemeLoad == true);
}
+ bool needRedraw() {
+ return true;
+ }
+
+ void redrawDialogStack();
bool isWidgetCached(DrawData type, const Common::Rect &r);
void drawCached(DrawData type, const Common::Rect &r);
@@ -307,7 +285,7 @@ protected:
inline void drawDD(DrawData type, const Common::Rect &r);
void addDirtyRect(const Common::Rect &r) {
- _dirtyScreen.extend(r);
+ _dirtyScreen.push_back(r);
}
OSystem *_system;
@@ -325,7 +303,7 @@ protected:
WidgetDrawData *_widgets[kDrawDataMAX];
Common::FixedStack<Dialog *, kMaxDialogDepth> _dialogStack;
- Common::Rect _dirtyScreen;
+ Common::Array<Common::Rect> _dirtyScreen;
bool _initOk;
bool _themeOk;