From 8626976d996205daa2e51400b334eb7c10536044 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 15 Apr 2001 23:22:31 +0000 Subject: [PATCH] Document that fl_line_style() must be called after fl_color() on WIN32 systems (at least) since fl_color() will destroy the extended pen created by fl_line_style(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/drawing.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/documentation/drawing.html b/documentation/drawing.html index 225806ee6..e7baa1c0e 100644 --- a/documentation/drawing.html +++ b/documentation/drawing.html @@ -88,10 +88,17 @@ in the gray ramp or color cube is used.

void fl_line_style(int style, int width=0, char* dashes=0)

-Set how to draw lines (the "pen"). If you change this it is your +

Set how to draw lines (the "pen"). If you change this it is your responsibility to set it back to the default with fl_line_style(0). +

+Note: Because of how line styles are implemented on WIN32 systems, +you must set the line style after setting the drawing color. +If you set the color after the line style you will lose the line style +settings! +
+

style is a bitmask in which you 'or' the following values. If you don't specify a dash type you will get a solid line. If you don't specify a cap or join type you will get a system-defined default of