aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/ThemeRenderer.cpp2
-rw-r--r--gui/ThemeRenderer.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/gui/ThemeRenderer.cpp b/gui/ThemeRenderer.cpp
index 277adc8438..d31067fbfd 100644
--- a/gui/ThemeRenderer.cpp
+++ b/gui/ThemeRenderer.cpp
@@ -303,6 +303,7 @@ void ThemeRenderer::queueDD(DrawData type, const Common::Rect &r, uint32 dynamic
DrawQueue q;
q.type = type;
q.area = r;
+ q.area.clip(_screen->w, _screen->h);
q.dynData = dynamic;
if (_buffering) {
@@ -323,6 +324,7 @@ void ThemeRenderer::queueDDText(DrawData type, const Common::Rect &r, const Comm
DrawQueueText q;
q.type = type;
q.area = r;
+ q.area.clip(_screen->w, _screen->h);
q.text = text;
q.colorId = colorId;
q.align = align;
diff --git a/gui/ThemeRenderer.h b/gui/ThemeRenderer.h
index c54eaf3a1e..a43d13b6e3 100644
--- a/gui/ThemeRenderer.h
+++ b/gui/ThemeRenderer.h
@@ -429,9 +429,6 @@ protected:
* Handles all the dirty squares in the list, merges and optimizes
* them when possible and draws them to the screen.
* Called from updateScreen()
- *
- * TODO: This function is partly implemented, but currently not used.
- * Currently the whole frame is drawn to the screen.
*/
void renderDirtyScreen();