diff options
author | Eugene Sandulenko | 2013-08-28 10:50:03 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:51:21 +0300 |
commit | 7154d1f2cd91e8d1b160bb89ce416edf38679afd (patch) | |
tree | 69099606950c232c82616c83cc30df2f5767a787 /engines/fullpipe/gfx.cpp | |
parent | 0daaadc604b5ec8ce3be491736b01156c19afca9 (diff) | |
download | scummvm-rg350-7154d1f2cd91e8d1b160bb89ce416edf38679afd.tar.gz scummvm-rg350-7154d1f2cd91e8d1b160bb89ce416edf38679afd.tar.bz2 scummvm-rg350-7154d1f2cd91e8d1b160bb89ce416edf38679afd.zip |
FULLPIPE: More *AtPos functions
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 3384b87815..b43ea9706d 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -616,6 +616,27 @@ bool Picture::isPixelHitAtPos(int x, int y) { return _bitmap->isPixelHitAtPos(x, y); } +int Picture::getPixelAtPos(int x, int y) { + return getPixelAtPosEx(x / g_fullpipe->_pictureScale, y / g_fullpipe->_pictureScale); + + return false; +} + +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 + return 0; +} + bool Bitmap::isPixelHitAtPos(int x, int y) { debug(0, "STUB: Bitmap::isPixelHitAtPos(%d, %d)", x, y); |