[Scummvm-cvs-logs] scummvm master -> 7b043baf91165ca612c5641867bd876209afea2c

dreammaster dreammaster at scummvm.org
Fri May 6 14:09:34 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7b043baf91 TSAGE: Hopefully fix some Valgrind reported warnings


Commit: 7b043baf91165ca612c5641867bd876209afea2c
    https://github.com/scummvm/scummvm/commit/7b043baf91165ca612c5641867bd876209afea2c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-05-06T05:07:53-07:00

Commit Message:
TSAGE: Hopefully fix some Valgrind reported warnings

Changed paths:
    engines/tsage/graphics.cpp



diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp
index fbc1e2a..723e50d 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);
 }
 






More information about the Scummvm-git-logs mailing list