aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/graphics.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2011-05-03 22:24:00 +1000
committerPaul Gilbert2011-05-03 22:40:48 +1000
commit9f30ffa76f927b1a58dfb48078506a9a67171326 (patch)
tree93597598a155c81e02221b0511e2aa456cf7dd04 /engines/tsage/graphics.cpp
parent73396954c90cc113284417d9d27b20290b3b80bb (diff)
downloadscummvm-rg350-9f30ffa76f927b1a58dfb48078506a9a67171326.tar.gz
scummvm-rg350-9f30ffa76f927b1a58dfb48078506a9a67171326.tar.bz2
scummvm-rg350-9f30ffa76f927b1a58dfb48078506a9a67171326.zip
TSAGE: Bugfixes to allow for drawing message strings that are empty
Diffstat (limited to 'engines/tsage/graphics.cpp')
-rw-r--r--engines/tsage/graphics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp
index 9d840bf00d..af38f211b2 100644
--- a/engines/tsage/graphics.cpp
+++ b/engines/tsage/graphics.cpp
@@ -484,6 +484,8 @@ static GfxSurface ResizeSurface(GfxSurface &src, int xSize, int ySize, int trans
*/
void GfxSurface::copyFrom(GfxSurface &src, Rect srcBounds, Rect destBounds, Region *priorityRegion) {
GfxSurface srcImage;
+ if (srcBounds.isEmpty())
+ return;
if (srcBounds == src.getBounds())
srcImage = src;