aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-07-13 11:45:52 +0300
committerEugene Sandulenko2013-09-06 14:48:18 +0300
commit51a5b5c9c51ac40c3ec27e4b55f8c9118c9a580f (patch)
treeb8c002888615688c643f450baa7c963f5895ab48 /engines
parentdefc53d4d1a74959adf4e87f2e715ac3c4c2f7b7 (diff)
downloadscummvm-rg350-51a5b5c9c51ac40c3ec27e4b55f8c9118c9a580f.tar.gz
scummvm-rg350-51a5b5c9c51ac40c3ec27e4b55f8c9118c9a580f.tar.bz2
scummvm-rg350-51a5b5c9c51ac40c3ec27e4b55f8c9118c9a580f.zip
FULLPIPE: Stubs for picture drawing
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/gfx.cpp50
-rw-r--r--engines/fullpipe/gfx.h3
2 files changed, 53 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() {
}
diff --git a/engines/fullpipe/gfx.h b/engines/fullpipe/gfx.h
index aa5dbf4be9..a2bcad01b8 100644
--- a/engines/fullpipe/gfx.h
+++ b/engines/fullpipe/gfx.h
@@ -67,6 +67,9 @@ class Picture : public MemoryObject {
void init();
void getDibInfo();
Bitmap *getPixelData();
+ void draw(int x, int y, int style, int angle);
+ void drawRotated(int x, int y, int angle);
+ void putDib(int x, int y);
byte getAlpha() { return (byte)_alpha; }
void setAlpha(byte alpha) { _alpha = alpha; }