[Scummvm-git-logs] scummvm master -> 6a8ee95dbabbdd0355284d4dce1db0df9b1b361b

dreammaster dreammaster at scummvm.org
Tue Aug 30 04:28:35 CEST 2016


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:
6a8ee95dba TITANIC: Properly initialize data array in CSurfaceFader


Commit: 6a8ee95dbabbdd0355284d4dce1db0df9b1b361b
    https://github.com/scummvm/scummvm/commit/6a8ee95dbabbdd0355284d4dce1db0df9b1b361b
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-08-29T22:28:25-04:00

Commit Message:
TITANIC: Properly initialize data array in CSurfaceFader

Changed paths:
    engines/titanic/star_control/surface_fader.cpp



diff --git a/engines/titanic/star_control/surface_fader.cpp b/engines/titanic/star_control/surface_fader.cpp
index 089ad51..0ee0367 100644
--- a/engines/titanic/star_control/surface_fader.cpp
+++ b/engines/titanic/star_control/surface_fader.cpp
@@ -29,9 +29,9 @@ namespace Titanic {
 CSurfaceFader::CSurfaceFader() : CSurfaceFaderBase() {
 	_dataP = new byte[_count];
 
-	for (int idx = 0; idx < _count; ++idx) {
-		// TODO: Setup data bytes
-	}
+	for (int idx = 0; idx < _count; ++idx)
+		_dataP[idx] = (byte)(pow((double)idx / (double)_count, 1.299999952316284)
+			* (double)_count + 0.5);
 }
 
 CSurfaceFader::~CSurfaceFader() {





More information about the Scummvm-git-logs mailing list