aboutsummaryrefslogtreecommitdiff
path: root/nullfe.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2010-05-29 15:43:46 +0000
committerSimon Tatham <anakin@pobox.com>2010-05-29 15:43:46 +0000
commit9cd182ffa92e97609d562883a1c8e74949963ba0 (patch)
tree43f35c00ac8d248209c3c40ebb9ac9d1a3e5e302 /nullfe.c
parentef6e78c6ac804a197cfc6002c5866885321626c5 (diff)
downloadpuzzles-9cd182ffa92e97609d562883a1c8e74949963ba0.zip
puzzles-9cd182ffa92e97609d562883a1c8e74949963ba0.tar.gz
puzzles-9cd182ffa92e97609d562883a1c8e74949963ba0.tar.bz2
puzzles-9cd182ffa92e97609d562883a1c8e74949963ba0.tar.xz
Patch from Mark Wooding to introduce a draw_thick_line() function in
the drawing API, for use by Loopy. It's optional: drawing.c will construct an acceptable alternative using a filled polygon if the front end doesn't provide it. Net and Netslide previously had static functions called draw_thick_line(), whose claim to the name is less justified and so they've been renamed. [originally from svn r8962]
Diffstat (limited to 'nullfe.c')
-rw-r--r--nullfe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nullfe.c b/nullfe.c
index f80a50c..4c9975b 100644
--- a/nullfe.c
+++ b/nullfe.c
@@ -13,6 +13,8 @@ void draw_text(drawing *dr, int x, int y, int fonttype, int fontsize,
int align, int colour, char *text) {}
void draw_rect(drawing *dr, int x, int y, int w, int h, int colour) {}
void draw_line(drawing *dr, int x1, int y1, int x2, int y2, int colour) {}
+void draw_thick_line(drawing *dr, float thickness,
+ float x1, float y1, float x2, float y2, int colour) {}
void draw_polygon(drawing *dr, int *coords, int npoints,
int fillcolour, int outlinecolour) {}
void draw_circle(drawing *dr, int cx, int cy, int radius,