aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti2008-07-22 13:33:32 +0000
committerVicent Marti2008-07-22 13:33:32 +0000
commita9ab9c0189906229b7ec730fa78eeb18e966a9e1 (patch)
treee7db692b638b14fe8166452771dd2fc4d784e768
parentdaa32f77f87439e592105c21c5b6e80c2fadac62 (diff)
downloadscummvm-rg350-a9ab9c0189906229b7ec730fa78eeb18e966a9e1.tar.gz
scummvm-rg350-a9ab9c0189906229b7ec730fa78eeb18e966a9e1.tar.bz2
scummvm-rg350-a9ab9c0189906229b7ec730fa78eeb18e966a9e1.zip
Cleanup.
svn-id: r33201
-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();