aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/gfx.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-07-25 16:42:44 +0300
committerEugene Sandulenko2013-09-06 14:51:05 +0300
commit7f332e1f208344f88d1cfd1899743eb7dd5403de (patch)
tree2d9cb293e2749756ab7f8b11a59ff2d3f697c062 /engines/fullpipe/gfx.cpp
parentaaf5bae026416e158d69633eb1b07c73a63fcccd (diff)
downloadscummvm-rg350-7f332e1f208344f88d1cfd1899743eb7dd5403de.tar.gz
scummvm-rg350-7f332e1f208344f88d1cfd1899743eb7dd5403de.tar.bz2
scummvm-rg350-7f332e1f208344f88d1cfd1899743eb7dd5403de.zip
FULLPIPE: Second part of scene drawing
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r--engines/fullpipe/gfx.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index 1e1f1b554f..79de4ef5ae 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -151,6 +151,13 @@ Common::Point *PictureObject::getDimensions(Common::Point *p) {
return p;
}
+void PictureObject::draw() {
+ if (_flags & 1)
+ _picture->draw(_ox, _oy, 2, 0);
+ else
+ _picture->draw(_ox, _oy, 0, 0);
+}
+
GameObject::GameObject() {
_field_4 = 0;
_flags = 0;
@@ -511,7 +518,7 @@ void Bitmap::putDibRB(int32 *palette) {
}
}
- g_fullpipe->_system->copyRectToScreen(g_fullpipe->_backgroundSurface.getBasePtr(startx, starty), g_fullpipe->_backgroundSurface.pitch, startx, starty, endx + 1, endy + 1);
+ g_fullpipe->_system->copyRectToScreen(g_fullpipe->_backgroundSurface.getBasePtr(startx, starty), g_fullpipe->_backgroundSurface.pitch, startx, starty, endx + 1 - startx, endy + 1 - starty);
}
void Bitmap::putDibCB(int32 *palette) {
@@ -565,7 +572,7 @@ void Bitmap::putDibCB(int32 *palette) {
}
}
- g_fullpipe->_system->copyRectToScreen(g_fullpipe->_backgroundSurface.getBasePtr(startx, starty), g_fullpipe->_backgroundSurface.pitch, startx, starty, endx + 1, endy + 1);
+ g_fullpipe->_system->copyRectToScreen(g_fullpipe->_backgroundSurface.getBasePtr(startx, starty), g_fullpipe->_backgroundSurface.pitch, startx, starty, endx + 1 - startx, endy + 1 - starty);
}
void Bitmap::colorFill(uint16 *dest, int len, int32 color) {