From 89b7afbac89eb3aac8871a9853cf12a0d6141dab Mon Sep 17 00:00:00 2001 From: fonsinchen Date: Wed, 23 Oct 2013 19:41:20 +0000 Subject: (svn r25911) -Add: Support for drawing dashed lines. --- src/blitter/base.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/blitter/base.hpp') 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. -- cgit v1.2.3-54-g00ecf