aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-08-28 22:56:36 +0300
committerEugene Sandulenko2013-09-06 14:51:21 +0300
commitd8d5e2d67f4caa009918b35cb543ea6ab0a408e0 (patch)
tree88442f53879b66acb95f9866cd5204474d0e139f /engines
parent7154d1f2cd91e8d1b160bb89ce416edf38679afd (diff)
downloadscummvm-rg350-d8d5e2d67f4caa009918b35cb543ea6ab0a408e0.tar.gz
scummvm-rg350-d8d5e2d67f4caa009918b35cb543ea6ab0a408e0.tar.bz2
scummvm-rg350-d8d5e2d67f4caa009918b35cb543ea6ab0a408e0.zip
FULLPIPE: Finished Picture::getPixelAtPosEx()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/gfx.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index b43ea9706d..3f32c27615 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -623,17 +623,14 @@ int Picture::getPixelAtPos(int x, int y) {
}
int Picture::getPixelAtPosEx(int x, int y) {
-#if 0
if (x < 0 || y < 0)
return 0;
- v5 = ictureScale + this->width - 1;
- if ( x < v5 / g_fullpipe->_pictureScale
- && (v6 = g_fullpipe->_pictureScale + this_->height - 1, y < v6 / (unsigned __int16)getPictureScale())
- && (v7 = this_->memoryObject2) != 0
- && (v8 = v7->rows) != 0 )
- return = *(_WORD *)&v8[x][2 * y];
-#endif
+ if (x < (g_fullpipe->_pictureScale + _width - 1) / g_fullpipe->_pictureScale &&
+ y < (g_fullpipe->_pictureScale + _height - 1) / g_fullpipe->_pictureScale &&
+ _memoryObject2 != 0 && _memoryObject2->_rows != 0)
+ return _memoryObject2->_rows[x][2 * y];
+
return 0;
}