mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 08:25:45 -07:00
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]
This commit is contained in:
@ -184,6 +184,8 @@ void draw_polygon(drawing *dr, int *coords, int npoints,
|
||||
int fillcolour, int outlinecolour);
|
||||
void draw_circle(drawing *dr, int cx, int cy, int radius,
|
||||
int fillcolour, int outlinecolour);
|
||||
void draw_thick_line(drawing *dr, float thickness,
|
||||
float x1, float y1, float x2, float y2, int colour);
|
||||
void clip(drawing *dr, int x, int y, int w, int h);
|
||||
void unclip(drawing *dr);
|
||||
void start_draw(drawing *dr);
|
||||
@ -519,6 +521,9 @@ struct drawing_api {
|
||||
void (*line_dotted)(void *handle, int dotted);
|
||||
char *(*text_fallback)(void *handle, const char *const *strings,
|
||||
int nstrings);
|
||||
void (*draw_thick_line)(void *handle, float thickness,
|
||||
float x1, float y1, float x2, float y2,
|
||||
int colour);
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user