summaryrefslogtreecommitdiff
path: root/src/gfx_func.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-07-02 14:37:03 +0000
committerfrosch <frosch@openttd.org>2011-07-02 14:37:03 +0000
commit1bc1a42ea57c038df25f2e538bea77fa5451c30d (patch)
tree53a4c42bf75225b191967ca5a0c69f5300ed6ec2 /src/gfx_func.h
parentc544dca5191112bf8a21acff36833c081d304291 (diff)
downloadopenttd-1bc1a42ea57c038df25f2e538bea77fa5451c30d.tar.xz
(svn r22619) -Fix [FS#4662]: Consider the size of the vehicle sprite for the lineheight in the company GUI. This also makes the widget containing the sprite not skip drawing it, if the bounds of the widget are outside of the drawing area though the sprite actually needs drawing.
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r--src/gfx_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h
index 5e269bff7..16cd42d84 100644
--- a/src/gfx_func.h
+++ b/src/gfx_func.h
@@ -88,7 +88,7 @@ static const int DRAW_STRING_BUFFER = 2048;
void RedrawScreenRect(int left, int top, int right, int bottom);
void GfxScroll(int left, int top, int width, int height, int xo, int yo);
-Dimension GetSpriteSize(SpriteID sprid);
+Dimension GetSpriteSize(SpriteID sprid, Point *offset = NULL);
void DrawSprite(SpriteID img, PaletteID pal, int x, int y, const SubSprite *sub = NULL);
/** How to align the to-be drawn text. */