diff options
author | fonsinchen <fonsinchen@openttd.org> | 2013-10-23 19:41:20 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2013-10-23 19:41:20 +0000 |
commit | 89b7afbac89eb3aac8871a9853cf12a0d6141dab (patch) | |
tree | e059a94a03773edad3542dbbce7901ac2c3d2dd4 /src/blitter/base.hpp | |
parent | f528d2c59246cb76c5d84dfac04e84e1368ea650 (diff) | |
download | openttd-89b7afbac89eb3aac8871a9853cf12a0d6141dab.tar.xz |
(svn r25911) -Add: Support for drawing dashed lines.
Diffstat (limited to 'src/blitter/base.hpp')
-rw-r--r-- | src/blitter/base.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blitter/base.hpp b/src/blitter/base.hpp index 91ff68c3b..00851eeef 100644 --- a/src/blitter/base.hpp +++ b/src/blitter/base.hpp @@ -118,8 +118,9 @@ public: * @param screen_height The height of the screen you are drawing in (to avoid buffer-overflows). * @param colour A 8bpp mapping colour. * @param width Line width. + * @param dash Length of dashes for dashed lines. 0 means solid line. */ - virtual void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 colour, int width); + virtual void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 colour, int width, int dash = 0); /** * Copy from a buffer to the screen. |