From 13f9ab01aa99464310d824defe0b6c14ea0244d4 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 9 Apr 2017 07:23:26 -0400 Subject: TITANIC: Fix rendering of starfield pixels --- engines/titanic/star_control/base_star.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'engines') diff --git a/engines/titanic/star_control/base_star.cpp b/engines/titanic/star_control/base_star.cpp index cfadedd8e7..c9ea3eb51f 100644 --- a/engines/titanic/star_control/base_star.cpp +++ b/engines/titanic/star_control/base_star.cpp @@ -419,14 +419,14 @@ void CBaseStar::draw3(CSurfaceArea *surfaceArea, CStarControlSub12 *sub12, CStar switch (entry._thickness) { case 0: - *pixelP = rgb; + *pixelP |= rgb; break; case 1: - *pixelP = rgb; - *(pixelP + 1) = rgb; - *(pixelP + surfaceArea->_pitch / 2) = rgb; - *(pixelP + surfaceArea->_pitch / 2 + 1) = rgb; + *pixelP |= rgb; + *(pixelP + 1) |= rgb; + *(pixelP + surfaceArea->_pitch / 2) |= rgb; + *(pixelP + surfaceArea->_pitch / 2 + 1) |= rgb; break; default: @@ -526,14 +526,14 @@ void CBaseStar::draw4(CSurfaceArea *surfaceArea, CStarControlSub12 *sub12, CStar switch (entry._thickness) { case 0: - *pixelP = rgb; + *pixelP |= rgb; break; case 1: - *pixelP = rgb; - *(pixelP + 1) = rgb; - *(pixelP + surfaceArea->_pitch / 2) = rgb; - *(pixelP + surfaceArea->_pitch / 2 + 1) = rgb; + *pixelP |= rgb; + *(pixelP + 1) |= rgb; + *(pixelP + surfaceArea->_pitch / 2) |= rgb; + *(pixelP + surfaceArea->_pitch / 2 + 1) |= rgb; break; default: -- cgit v1.2.3