summaryrefslogtreecommitdiff
path: root/src/openglgraphics.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-09-23 00:08:38 +0200
committerBertram <bertram@cegetel.net>2009-09-23 00:08:38 +0200
commit5aad04d3333f9a75b8eeea28802422d7c310304d (patch)
tree4346fe7379c8330afeb667dcce69ca5ad04ba70e /src/openglgraphics.h
parenta4862f48de85b0eee8eb23b0afe3da45f8cedcbc (diff)
downloadmana-5aad04d3333f9a75b8eeea28802422d7c310304d.tar.gz
mana-5aad04d3333f9a75b8eeea28802422d7c310304d.tar.bz2
mana-5aad04d3333f9a75b8eeea28802422d7c310304d.tar.xz
mana-5aad04d3333f9a75b8eeea28802422d7c310304d.zip
Added a basic smooth effect to rescaled wallpapers in OpenGL.
The current login wallpaper (as any streched ones) will look a bit less ugly...
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r--src/openglgraphics.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openglgraphics.h b/src/openglgraphics.h
index 0bee48b4..65f58934 100644
--- a/src/openglgraphics.h
+++ b/src/openglgraphics.h
@@ -55,6 +55,15 @@ class OpenGLGraphics : public Graphics
int desiredWidth, int desiredHeight,
bool useColor);
+ /**
+ * Used to get the smooth rescale option over the standard function.
+ */
+ bool drawRescaledImage(Image *image, int srcX, int srcY,
+ int dstX, int dstY,
+ int width, int height,
+ int desiredWidth, int desiredHeight,
+ bool useColor, bool smooth);
+
void drawImagePattern(Image *image,
int x, int y,
int w, int h);