aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/star_control_sub5.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-03-25 21:07:59 -0400
committerPaul Gilbert2017-03-25 21:07:59 -0400
commit843540b334d49a606e65e7e92997c3c469cf6ae0 (patch)
tree2f3eea820ed532b5f72f73aeaf090537ba7e135d /engines/titanic/star_control/star_control_sub5.cpp
parentd7080148c3a62546a19ea4114c341af83bc7a600 (diff)
downloadscummvm-rg350-843540b334d49a606e65e7e92997c3c469cf6ae0.tar.gz
scummvm-rg350-843540b334d49a606e65e7e92997c3c469cf6ae0.tar.bz2
scummvm-rg350-843540b334d49a606e65e7e92997c3c469cf6ae0.zip
TITANIC: Finished CSurfaceArea class
The fillRect method is implemented using an experimental, more ScummVM style, rather than all the different blocks and loops for different bit depths that the original did
Diffstat (limited to 'engines/titanic/star_control/star_control_sub5.cpp')
-rw-r--r--engines/titanic/star_control/star_control_sub5.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/star_control/star_control_sub5.cpp b/engines/titanic/star_control/star_control_sub5.cpp
index 8c332975c6..092e7eb35a 100644
--- a/engines/titanic/star_control/star_control_sub5.cpp
+++ b/engines/titanic/star_control/star_control_sub5.cpp
@@ -331,7 +331,7 @@ void CStarControlSub5::proc2(CStarControlSub6 *sub6, FVector *vector, double v1,
GridEntry &grid2 = _grid[d1._index2];
if (grid1._z > val1 && grid2._z > val1) {
- surfaceArea->fn1(FRect(grid1._position._x, grid1._position._y,
+ surfaceArea->fillRect(FRect(grid1._position._x, grid1._position._y,
grid2._position._x, grid2._position._y));
}
}
@@ -353,7 +353,7 @@ void CStarControlSub5::proc2(CStarControlSub6 *sub6, FVector *vector, double v1,
GridEntry &grid2 = _grid[d1._index2];
if (grid1._z > val1 && grid2._z > val1) {
- surfaceArea->fn1(FRect(grid1._position._x, grid1._position._y,
+ surfaceArea->fillRect(FRect(grid1._position._x, grid1._position._y,
grid2._position._x, grid2._position._y));
}
}
@@ -375,7 +375,7 @@ void CStarControlSub5::proc2(CStarControlSub6 *sub6, FVector *vector, double v1,
GridEntry &grid2 = _grid[d1._index2];
if (grid1._z > val1 && grid2._z > val1) {
- surfaceArea->fn1(FRect(grid1._position._x, grid1._position._y,
+ surfaceArea->fillRect(FRect(grid1._position._x, grid1._position._y,
grid2._position._x, grid2._position._y));
}
}
@@ -445,7 +445,7 @@ void CStarControlSub5::proc2(CStarControlSub6 *sub6, FVector *vector, double v1,
GridEntry &grid2 = _grid[d1._index2];
if (grid2._z > val1 && grid1._z > val1) {
- surfaceArea->fn1(FRect(grid1._position._x, grid1._position._y,
+ surfaceArea->fillRect(FRect(grid1._position._x, grid1._position._y,
grid2._position._x, grid2._position._y));
}
}
@@ -467,7 +467,7 @@ void CStarControlSub5::proc2(CStarControlSub6 *sub6, FVector *vector, double v1,
GridEntry &grid2 = _grid[d1._index2];
if (grid2._z > val1 && grid1._z > val1) {
- surfaceArea->fn1(FRect(grid1._position._x, grid1._position._y,
+ surfaceArea->fillRect(FRect(grid1._position._x, grid1._position._y,
grid2._position._x, grid2._position._y));
}
}
@@ -489,7 +489,7 @@ void CStarControlSub5::proc2(CStarControlSub6 *sub6, FVector *vector, double v1,
GridEntry &grid2 = _grid[d1._index2];
if (grid2._z > val1 && grid1._z > val1) {
- surfaceArea->fn1(FRect(grid1._position._x, grid1._position._y,
+ surfaceArea->fillRect(FRect(grid1._position._x, grid1._position._y,
grid2._position._x, grid2._position._y));
}
}