From f1173f52a24de56fd7ad91e5806917db8c11ee63 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Sun, 29 Jun 2008 12:08:53 +0000 Subject: Changes to rendering pipeline. WIP. svn-id: r32837 --- gui/InterfaceManager.h | 36 +++++++----------------------------- 1 file changed, 7 insertions(+), 29 deletions(-) (limited to 'gui/InterfaceManager.h') 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 _dialogStack; - Common::Rect _dirtyScreen; + Common::Array _dirtyScreen; bool _initOk; bool _themeOk; -- cgit v1.2.3