aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/image/image.h
diff options
context:
space:
mode:
authorjohndoe1232013-04-17 12:41:49 +0200
committerjohndoe1232013-04-17 12:41:49 +0200
commit0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432 (patch)
tree4351e3a630eb9dc4e684d5147e1c1499fbf0e98e /engines/sword25/gfx/image/image.h
parent6548104b96be211b1c93412a05802cc821b1d2e0 (diff)
downloadscummvm-rg350-0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432.tar.gz
scummvm-rg350-0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432.tar.bz2
scummvm-rg350-0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432.zip
SWORD25: Optimize graphics drawing code
Diffstat (limited to 'engines/sword25/gfx/image/image.h')
-rw-r--r--engines/sword25/gfx/image/image.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/sword25/gfx/image/image.h b/engines/sword25/gfx/image/image.h
index f1934656da..9d7fc43251 100644
--- a/engines/sword25/gfx/image/image.h
+++ b/engines/sword25/gfx/image/image.h
@@ -46,6 +46,8 @@
namespace Sword25 {
+class RectangleList;
+
class Image {
public:
virtual ~Image() {}
@@ -129,7 +131,8 @@ public:
int flipping = FLIP_NONE,
Common::Rect *pPartRect = NULL,
uint color = BS_ARGB(255, 255, 255, 255),
- int width = -1, int height = -1) = 0;
+ int width = -1, int height = -1,
+ RectangleList *updateRects = 0) = 0;
/**
@brief fills a rectangular section of the image with a color.
@@ -202,6 +205,8 @@ public:
@brief Returns true, if the content of the BS_Image is allowed to be replaced by call of SetContent().
*/
virtual bool isSetContentAllowed() const = 0;
+
+ virtual bool isSolid() const { return false; }
//@}
};