diff options
author | Eugene Sandulenko | 2016-09-04 15:13:27 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-04 15:13:27 +0200 |
commit | 149267613a0f9e4b04f63ee71865e5948871cf4f (patch) | |
tree | 54de98b4d66696c030d894aec5abd71cf61d59e0 /engines | |
parent | b1fc0f69462feb635c2359087b63393d02f8f819 (diff) | |
download | scummvm-rg350-149267613a0f9e4b04f63ee71865e5948871cf4f.tar.gz scummvm-rg350-149267613a0f9e4b04f63ee71865e5948871cf4f.tar.bz2 scummvm-rg350-149267613a0f9e4b04f63ee71865e5948871cf4f.zip |
FULLPIPE: Implement FullpipeEngine::drawAlphaRectangle()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 76d29f7aad..32d23048cd 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -1265,7 +1265,16 @@ DynamicPhase *Shadows::findSize(int width, int height) { } void FullpipeEngine::drawAlphaRectangle(int x1, int y1, int x2, int y2, int alpha) { - warning("STUB: FullpipeEngine::drawAlphaRectangle()"); + for (int y = y1; y < y2; y++) { + uint32 *ptr = (uint32 *)g_fp->_backgroundSurface.getBasePtr(0, y); + + for (int x = x1; x < x2; x++) { + uint32 color = *ptr; + color = (color & 0xffffff00) | (alpha & 0xff); + *ptr = color; + ptr++; + } + } } void FullpipeEngine::sceneFade(Scene *sc, bool direction) { |