diff options
author | Eugene Sandulenko | 2013-07-13 11:45:52 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:48:18 +0300 |
commit | 51a5b5c9c51ac40c3ec27e4b55f8c9118c9a580f (patch) | |
tree | b8c002888615688c643f450baa7c963f5895ab48 /engines/fullpipe/gfx.cpp | |
parent | defc53d4d1a74959adf4e87f2e715ac3c4c2f7b7 (diff) | |
download | scummvm-rg350-51a5b5c9c51ac40c3ec27e4b55f8c9118c9a580f.tar.gz scummvm-rg350-51a5b5c9c51ac40c3ec27e4b55f8c9118c9a580f.tar.bz2 scummvm-rg350-51a5b5c9c51ac40c3ec27e4b55f8c9118c9a580f.zip |
FULLPIPE: Stubs for picture drawing
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 3679f8f345..91c07806b0 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -287,6 +287,56 @@ Bitmap *Picture::getPixelData() { return _bitmap; } +void Picture::draw(int x, int y, int style, int angle) { + int x1 = x; + int y1 = y; + + if (x != -1) + x1 = x; + + if (y != -1) + y1 = y; + + if (!_bitmap) + init(); + + if (!_bitmap) + return; + + if (_alpha < 0xff) { + warning("Picture:draw: alpha = %0x", _alpha); + } + + if (_bitmap->type == MKTAG('C', 'B', '\0', '\0') || _bitmap->type == MKTAG('R', 'B', '\0', '\0')) { + if (_paletteData) { + warning("Picture:draw: have palette"); + } + } + + switch (style) { + case 1: + //flip + warning("Picture::draw: style 1"); + break; + case 2: + error("Picture::draw: style 2"); + break; + default: + if (angle) { + warning("Picture:draw: angle = %d", angle); + drawRotated(x1, y1, angle); + } else { + putDib(x1, y1); + } + } +} + +void Picture::drawRotated(int x, int y, int angle) { +} + +void Picture::putDib(int x, int y) { +} + BigPicture::BigPicture() { } |