[Scummvm-cvs-logs] SF.net SVN: scummvm:[34814] scummvm/trunk/gui/ThemeEngine.cpp
Tanoku at users.sourceforge.net
Tanoku at users.sourceforge.net
Sat Oct 18 02:29:23 CEST 2008
Revision: 34814
http://scummvm.svn.sourceforge.net/scummvm/?rev=34814&view=rev
Author: Tanoku
Date: 2008-10-18 00:29:23 +0000 (Sat, 18 Oct 2008)
Log Message:
-----------
Fixed: "GUI: Crash in Debugger" (ID: 2169419)
Modified Paths:
--------------
scummvm/trunk/gui/ThemeEngine.cpp
Modified: scummvm/trunk/gui/ThemeEngine.cpp
===================================================================
--- scummvm/trunk/gui/ThemeEngine.cpp 2008-10-16 18:17:24 UTC (rev 34813)
+++ scummvm/trunk/gui/ThemeEngine.cpp 2008-10-18 00:29:23 UTC (rev 34814)
@@ -899,10 +899,13 @@
void ThemeEngine::drawChar(const Common::Rect &r, byte ch, const Graphics::Font *font, WidgetStateInfo state) {
if (!ready())
return;
+
+ Common::Rect charArea = r;
+ charArea.clip(_screen->w, _screen->h);
- restoreBackground(r);
- font->drawChar(_screen, ch, r.left, r.top, 0);
- addDirtyRect(r);
+ restoreBackground(charArea);
+ font->drawChar(_screen, ch, charArea.left, charArea.top, 0);
+ addDirtyRect(charArea);
}
void ThemeEngine::debugWidgetPosition(const char *name, const Common::Rect &r) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list