aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/gfx.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-08-18 23:20:21 +0300
committerEugene Sandulenko2013-09-06 14:51:16 +0300
commitf9cefd02dfa3a8dd665e23d002aea870a3269e03 (patch)
treee534aee95cf248d330d2b092b77b31cf2b5d995f /engines/fullpipe/gfx.cpp
parent6a172694fb5da9851447eaf30403e63ed032b98b (diff)
downloadscummvm-rg350-f9cefd02dfa3a8dd665e23d002aea870a3269e03.tar.gz
scummvm-rg350-f9cefd02dfa3a8dd665e23d002aea870a3269e03.tar.bz2
scummvm-rg350-f9cefd02dfa3a8dd665e23d002aea870a3269e03.zip
FULLPIPE: Implement Picture::isPointInside()
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r--engines/fullpipe/gfx.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index 9b15d695f0..de2b81d76c 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -454,7 +454,7 @@ void Picture::draw(int x, int y, int style, int angle) {
byte *pal = _paletteData;
if (!pal) {
- warning("Picture:draw: using global palette");
+ //warning("Picture:draw: using global palette");
pal = g_fullpipe->_globalPalette;
}
@@ -537,6 +537,14 @@ void Picture::copyMemoryObject2(Picture *src) {
}
}
+bool Picture::isPointInside(int x, int y) {
+ if (x >= _x) {
+ if (y >= _y && x < _x + _width && y < _y + _height)
+ return true;
+ }
+ return false;
+}
+
void Bitmap::putDib(int x, int y, int32 *palette) {
debug(0, "Bitmap::putDib(%d, %d)", x, y);