diff options
author | johndoe123 | 2013-04-17 12:41:49 +0200 |
---|---|---|
committer | johndoe123 | 2013-04-17 12:41:49 +0200 |
commit | 0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432 (patch) | |
tree | 4351e3a630eb9dc4e684d5147e1c1499fbf0e98e /engines/sword25/gfx/bitmapresource.h | |
parent | 6548104b96be211b1c93412a05802cc821b1d2e0 (diff) | |
download | scummvm-rg350-0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432.tar.gz scummvm-rg350-0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432.tar.bz2 scummvm-rg350-0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432.zip |
SWORD25: Optimize graphics drawing code
Diffstat (limited to 'engines/sword25/gfx/bitmapresource.h')
-rw-r--r-- | engines/sword25/gfx/bitmapresource.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/sword25/gfx/bitmapresource.h b/engines/sword25/gfx/bitmapresource.h index f1278f3885..72b8a3ea1f 100644 --- a/engines/sword25/gfx/bitmapresource.h +++ b/engines/sword25/gfx/bitmapresource.h @@ -123,9 +123,10 @@ public: int flipping = FLIP_NONE, Common::Rect *pSrcPartRect = NULL, uint color = BS_ARGB(255, 255, 255, 255), - int width = -1, int height = -1) { + int width = -1, int height = -1, + RectangleList *updateRects = 0) { assert(_pImage); - return _pImage->blit(posX, posY, flipping, pSrcPartRect, color, width, height); + return _pImage->blit(posX, posY, flipping, pSrcPartRect, color, width, height, updateRects); } /** @@ -202,6 +203,11 @@ public: return _pImage->isColorModulationAllowed(); } + bool isSolid() { + assert(_pImage); + return _pImage->isSolid(); + } + private: Image *_pImage; }; |