diff options
author | Eugene Sandulenko | 2013-08-16 23:29:14 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:51:15 +0300 |
commit | 4db508bec199666d5287889ca24656bf0705a4f2 (patch) | |
tree | ed4d6f2e0ce9f37654e96cdbe1556b8601cfbb25 | |
parent | 0945b4595656c32997d32aa64ed14e0d073731dd (diff) | |
download | scummvm-rg350-4db508bec199666d5287889ca24656bf0705a4f2.tar.gz scummvm-rg350-4db508bec199666d5287889ca24656bf0705a4f2.tar.bz2 scummvm-rg350-4db508bec199666d5287889ca24656bf0705a4f2.zip |
FULLPIPE: Unstubbed Picture::draw()
-rw-r--r-- | engines/fullpipe/gfx.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index e5cbac31ac..9c19762d45 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -436,13 +436,20 @@ void Picture::draw(int x, int y, int style, int angle) { pal = g_fullpipe->_globalPalette; } + Common::Point point; + switch (style) { case 1: //flip - warning("STUB: Picture::draw: style 1"); + getDimensions(&point); + _bitmap->flipVertical()->drawShaded(1, x1, y1 + 30 + point.y, pal); break; case 2: - error("STUB: Picture::draw: style 2"); + //vrtSetFadeRatio(g_vrtDrawHandle, 0.34999999); + //vrtSetFadeTable(g_vrtDrawHandle, &unk_477F88, 1.0, 1000.0, 0, 0); + _bitmap->drawShaded(2, x1, y1, pal); + //vrtSetFadeRatio(g_vrtDrawHandle, 0.0); + //vrtSetFadeTable(g_vrtDrawHandle, &unk_477F90, 1.0, 1000.0, 0, 0); break; default: if (angle) @@ -804,7 +811,7 @@ Bitmap *Bitmap::flipVertical() { return this; } - void Bitmap::drawShaded(int type, int x, int y, byte *palette) { +void Bitmap::drawShaded(int type, int x, int y, byte *palette) { warning("STUB: Bitmap::drawShaded(%d, %d, %d)", type, x, y); putDib(x, y, (int32 *)palette); |