[Scummvm-git-logs] scummvm master -> 5741ee3103ec9a7a1802b020dad243c21e71572e
dreammaster
dreammaster at scummvm.org
Thu Apr 13 02:48:58 CEST 2017
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:
5741ee3103 TITANIC: Fix centroid calculations in star drawing methods
Commit: 5741ee3103ec9a7a1802b020dad243c21e71572e
https://github.com/scummvm/scummvm/commit/5741ee3103ec9a7a1802b020dad243c21e71572e
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-04-12T20:48:47-04:00
Commit Message:
TITANIC: Fix centroid calculations in star drawing methods
Changed paths:
engines/titanic/star_control/base_stars.cpp
diff --git a/engines/titanic/star_control/base_stars.cpp b/engines/titanic/star_control/base_stars.cpp
index a88c86f..1af456d 100644
--- a/engines/titanic/star_control/base_stars.cpp
+++ b/engines/titanic/star_control/base_stars.cpp
@@ -163,7 +163,7 @@ void CBaseStars::draw1(CSurfaceArea *surfaceArea, CStarCamera *camera, CStarClos
camera->proc36(&_value1, &_value2, &_value3, &_value4);
const double MAX_VAL = 1.0e9 * 1.0e9;
- FPoint centroid = surfaceArea->_centroid - FPoint(0.5, 0.5);
+ FPoint centroid = surfaceArea->_centroid + FPoint(0.5, 0.5);
double threshold = camera->getThreshold();
double minVal = threshold - 9216.0;
int width1 = surfaceArea->_width - 1;
@@ -248,7 +248,7 @@ void CBaseStars::draw2(CSurfaceArea *surfaceArea, CStarCamera *camera, CStarClos
camera->proc36(&_value1, &_value2, &_value3, &_value4);
const double MAX_VAL = 1.0e9 * 1.0e9;
- FPoint centroid = surfaceArea->_centroid - FPoint(0.5, 0.5);
+ FPoint centroid = surfaceArea->_centroid + FPoint(0.5, 0.5);
double threshold = camera->getThreshold();
double minVal = threshold - 9216.0;
int width1 = surfaceArea->_width - 1;
@@ -334,7 +334,7 @@ void CBaseStars::draw3(CSurfaceArea *surfaceArea, CStarCamera *camera, CStarClos
camera->proc36(&_value1, &_value2, &_value3, &_value4);
const double MAX_VAL = 1.0e9 * 1.0e9;
- FPoint centroid = surfaceArea->_centroid - FPoint(0.5, 0.5);
+ FPoint centroid = surfaceArea->_centroid + FPoint(0.5, 0.5);
double threshold = camera->getThreshold();
double minVal = threshold - 9216.0;
int width1 = surfaceArea->_width - 1;
@@ -447,7 +447,7 @@ void CBaseStars::draw4(CSurfaceArea *surfaceArea, CStarCamera *camera, CStarClos
pose._vector = FVector(28068592.0, 5345916.50, -116580624.0);
const double MAX_VAL = 1.0e9 * 1.0e9;
- FPoint centroid = surfaceArea->_centroid - FPoint(0.5, 0.5);
+ FPoint centroid = surfaceArea->_centroid + FPoint(0.5, 0.5);
double threshold = camera->getThreshold();
double minVal = threshold - 9216.0;
int width1 = surfaceArea->_width - 1;
More information about the Scummvm-git-logs
mailing list