aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2011-05-06 22:07:53 +1000
committerPaul Gilbert2011-05-06 22:07:53 +1000
commit7b043baf91165ca612c5641867bd876209afea2c (patch)
treef6a1e215bea86487bf4f5b1ea137419e13764813
parentc35ef00c4a10bcd4d1c8d8e57d8a368b879fb059 (diff)
downloadscummvm-rg350-7b043baf91165ca612c5641867bd876209afea2c.tar.gz
scummvm-rg350-7b043baf91165ca612c5641867bd876209afea2c.tar.bz2
scummvm-rg350-7b043baf91165ca612c5641867bd876209afea2c.zip
TSAGE: Hopefully fix some Valgrind reported warnings
-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 fbc1e2a359..723e50d338 100644
--- a/engines/tsage/graphics.cpp
+++ b/engines/tsage/graphics.cpp
@@ -227,6 +227,7 @@ GfxSurface::GfxSurface() : _bounds(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT) {
_lockSurfaceCtr = 0;
_customSurface = NULL;
_screenSurfaceP = NULL;
+ _transColor = -1;
}
GfxSurface::GfxSurface(const GfxSurface &s) {
@@ -259,6 +260,7 @@ void GfxSurface::create(int width, int height) {
_screenSurface = false;
_customSurface = new Graphics::Surface();
_customSurface->create(width, height, Graphics::PixelFormat::createFormatCLUT8());
+ Common::set_to((byte *)_customSurface->pixels, (byte *)_customSurface->pixels + (width * height), 0);
_bounds = Rect(0, 0, width, height);
}