diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-17 23:26:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-17 23:26:59 +0300 |
commit | 7e0a97d2521b9ce57003176e82a0b5564aa003c2 (patch) | |
tree | 5b2cfe1afe09bea1063f783050c1fb549daee76d /src/graphics.h | |
parent | f68cbf700a99f2f184715a5b8025bcb4b6525391 (diff) | |
download | plus-7e0a97d2521b9ce57003176e82a0b5564aa003c2.tar.gz plus-7e0a97d2521b9ce57003176e82a0b5564aa003c2.tar.bz2 plus-7e0a97d2521b9ce57003176e82a0b5564aa003c2.tar.xz plus-7e0a97d2521b9ce57003176e82a0b5564aa003c2.zip |
Fix more code style and additional warnings.
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/graphics.h b/src/graphics.h index ffa9a3c73..06461efe4 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -150,17 +150,6 @@ class Graphics : public gcn::SDLGraphics int desiredWidth, int desiredHeight, bool useColor = false); - /** - * Blits an image onto the screen. - * - * @return <code>true</code> if the image was blitted properly - * <code>false</code> otherwise. - */ - virtual bool drawImage(const Image *image, - int srcX, int srcY, - int dstX, int dstY, - int width, int height, - bool useColor); virtual void drawImagePattern(const Image *image, int x, int y, @@ -306,6 +295,19 @@ class Graphics : public gcn::SDLGraphics int mHeight; protected: + /** + * Blits an image onto the screen. + * + * @return <code>true</code> if the image was blitted properly + * <code>false</code> otherwise. + */ + virtual bool drawImage2(const Image *image, + int srcX, int srcY, + int dstX, int dstY, + int width, int height, + bool useColor); + + void setMainFlags(int w, int h, int bpp, bool fs, bool hwaccel, bool resize, bool noFrame); |