summaryrefslogtreecommitdiff
path: root/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-10-27 20:47:56 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-10-27 20:52:08 +0200
commit14f842708d79b3fbbe212325e4a63abe07a88fa7 (patch)
tree8491c0253f6a3f2407654ac9b48fcc6cf690bffc /src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx
parentb6b1fcce4103f6a401571e9050f4482d38d3a6c9 (diff)
Fix indenting, whitespace errors and dependencies
(no code changes)
Diffstat (limited to 'src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx')
-rw-r--r--src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx
index 2bab95a92..36fa8edb8 100644
--- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx
+++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx
@@ -45,13 +45,13 @@ void Fl_Xlib_Graphics_Driver::line_style_unscaled(int style, int width, char* da
}
char* p = dashes = buf;
switch (style & 0xff) {
- case FL_DASH: *p++ = dash; *p++ = gap; break;
- case FL_DOT: *p++ = dot; *p++ = gap; break;
- case FL_DASHDOT: *p++ = dash; *p++ = gap; *p++ = dot; *p++ = gap; break;
- case FL_DASHDOTDOT: *p++ = dash; *p++ = gap; *p++ = dot; *p++ = gap; *p++ = dot; *p++ = gap; break;
+ case FL_DASH: *p++ = dash; *p++ = gap; break;
+ case FL_DOT: *p++ = dot; *p++ = gap; break;
+ case FL_DASHDOT: *p++ = dash; *p++ = gap; *p++ = dot; *p++ = gap; break;
+ case FL_DASHDOTDOT: *p++ = dash; *p++ = gap; *p++ = dot; *p++ = gap; *p++ = dot; *p++ = gap; break;
}
ndashes = p-buf;
-if (*dashes == 0) ndashes = 0;//against error with very small scaling
+ if (*dashes == 0) ndashes = 0; // against error with very small scaling
}
static int Cap[4] = {CapButt, CapButt, CapRound, CapProjecting};
static int Join[4] = {JoinMiter, JoinMiter, JoinRound, JoinBevel};