diff options
author | Paul Gilbert | 2017-04-09 07:23:26 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-04-09 07:23:26 -0400 |
commit | 13f9ab01aa99464310d824defe0b6c14ea0244d4 (patch) | |
tree | ae713069c1603f9983b562821ebd371dffe27e4f /engines | |
parent | bb344959ea7c254f2fa75dd66cb444b26f026ec3 (diff) | |
download | scummvm-rg350-13f9ab01aa99464310d824defe0b6c14ea0244d4.tar.gz scummvm-rg350-13f9ab01aa99464310d824defe0b6c14ea0244d4.tar.bz2 scummvm-rg350-13f9ab01aa99464310d824defe0b6c14ea0244d4.zip |
TITANIC: Fix rendering of starfield pixels
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/star_control/base_star.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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: |