aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/picture.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-18 21:31:58 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit5a05140ac34a6a177b90a22f8601f2adff4831d5 (patch)
treea42401c712c3b270ed41fd04909a669faef0826a /engines/glk/picture.h
parentbd86fd7bbf19324e06834ee8f2e08e7e0df02e14 (diff)
downloadscummvm-rg350-5a05140ac34a6a177b90a22f8601f2adff4831d5.tar.gz
scummvm-rg350-5a05140ac34a6a177b90a22f8601f2adff4831d5.tar.bz2
scummvm-rg350-5a05140ac34a6a177b90a22f8601f2adff4831d5.zip
GLK: Add picture scaling
Diffstat (limited to 'engines/glk/picture.h')
-rw-r--r--engines/glk/picture.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/engines/glk/picture.h b/engines/glk/picture.h
index ca4f9995c8..c0108dd2a0 100644
--- a/engines/glk/picture.h
+++ b/engines/glk/picture.h
@@ -40,7 +40,13 @@ public:
/**
* Constructor
*/
- Picture() : Graphics::ManagedSurface(), _refCount(0), _id(0), _scaled(0) {}
+ Picture() : Graphics::ManagedSurface(), _refCount(0), _id(0), _scaled(false) {}
+
+ /**
+ * Constructor
+ */
+ Picture(int width, int height, const Graphics::PixelFormat &format) :
+ Graphics::ManagedSurface(width, height, format), _refCount(0), _id(0), _scaled(false) {}
/**
* Increment reference counter
@@ -53,11 +59,6 @@ public:
void decrement();
/**
- * Rescale the picture to a new picture of a given size
- */
- Picture *scale(int sx, int sy);
-
- /**
* Draw the picture
*/
void drawPicture(int x0, int y0, int dx0, int dy0, int dx1, int dy1);
@@ -134,6 +135,11 @@ public:
* Load a given picture
*/
Picture *load(uint32 id);
+
+ /**
+ * Rescale the passed picture to a new picture of a given size
+ */
+ Picture *scale(Picture *src, size_t sx, size_t sy);
};
} // End of namespace Glk