diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-08-05 16:39:32 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-08-05 16:40:36 +0200 |
commit | 363f71157a8107190b3bd2ba656faf0a0e63ab36 (patch) | |
tree | 4e86324c312f2d78b261d88d5b470a4a7cbf9f94 /src/graphics.cpp | |
parent | 4eea727b7649726670d8963d11ab4fd429624b3e (diff) | |
download | mana-363f71157a8107190b3bd2ba656faf0a0e63ab36.tar.gz mana-363f71157a8107190b3bd2ba656faf0a0e63ab36.tar.bz2 mana-363f71157a8107190b3bd2ba656faf0a0e63ab36.tar.xz mana-363f71157a8107190b3bd2ba656faf0a0e63ab36.zip |
Revert "Graphics: take only const pointers to images."
This reverts commit 4eea727b7649726670d8963d11ab4fd429624b3e.
It broke the overrides of the virtual functions and leaves the Graphics
API in inconsistent state with some Image* being const and others not.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r-- | src/graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp index 8bd16faa..7b56d974 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -146,7 +146,7 @@ int Graphics::getHeight() const return mHeight; } -bool Graphics::drawImage(const Image *image, int x, int y) +bool Graphics::drawImage(Image *image, int x, int y) { if (image) return drawImage(image, 0, 0, x, y, image->mBounds.w, image->mBounds.h); @@ -193,7 +193,7 @@ bool Graphics::drawRescaledImage(Image *image, int srcX, int srcY, return returnValue; } -bool Graphics::drawImage(const Image *image, int srcX, int srcY, int dstX, int dstY, +bool Graphics::drawImage(Image *image, int srcX, int srcY, int dstX, int dstY, int width, int height, bool) { // Check that preconditions for blitting are met. @@ -228,7 +228,7 @@ void Graphics::drawImage(gcn::Image const *image, int srcX, int srcY, drawImage(srcImage->getImage(), srcX, srcY, dstX, dstY, width, height, true); } -void Graphics::drawImagePattern(const Image *image, int x, int y, int w, int h) +void Graphics::drawImagePattern(Image *image, int x, int y, int w, int h) { // Check that preconditions for blitting are met. if (!mTarget || !image) |