From fa1a3ab995f037ddf33817a1b2ce143130a457f8 Mon Sep 17 00:00:00 2001 From: Bertram Date: Mon, 27 Jul 2009 01:02:27 +0200 Subject: Added the ability to ask a ambient layer to keep its ratio when the resolution isn't the default. You'll have to add this in map properties, for instance if you're want to keep ratio on overlay 0: ... ... --- src/graphics.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/graphics.h') diff --git a/src/graphics.h b/src/graphics.h index eca7e1a5..b8e87af1 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -29,6 +29,9 @@ class ImageRect; struct SDL_Surface; +static const int defaultScreenWidth = 800; +static const int defaultScreenHeight = 600; + /** * 9 images defining a rectangle. 4 corners, 4 sides and a middle area. The * topology is as follows: @@ -142,6 +145,13 @@ class Graphics : public gcn::SDLGraphics int x, int y, int w, int h); + /** + * Draw a pattern based on a rescaled version of the given image... + */ + virtual void drawRescaledImagePattern(Image *image, + int x, int y, int w, int h, + int scaledWidth, int scaledHeight); + /** * Draws a rectangle using images. 4 corner images, 4 side images and 1 * image for the inside. -- cgit v1.2.3-60-g2f50