diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-07-08 13:54:44 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-07-08 13:59:47 +0200 |
| commit | 5cca79489b6400168eab8ea7eb3a05b2c6578752 (patch) | |
| tree | 5bace9831213bdff6559b54f5ff96dd43a04ae6b /src/drivers/GDI | |
| parent | 135ba3a7e1e40df3df1949eee800eaf8c8b67416 (diff) | |
Harmonize and document syntax of config.h source files
- configh.in: add and improve comments, reorder statements
- configh.cmake.in: add comments, fix whitespace
- src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx:
fix trailing whitespace
Diffstat (limited to 'src/drivers/GDI')
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx index 20418333b..8e56a7cc1 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx @@ -77,7 +77,7 @@ void Fl_GDIplus_Graphics_Driver::line_style(int style, int width, char* dashes) pen_->SetDashStyle(Gdiplus::DashStyleDashDotDot); else if(!dashes || !*dashes) pen_->SetDashStyle(Gdiplus::DashStyleSolid); - + if (style & FL_CAP_ROUND ) { pen_->SetStartCap(Gdiplus::LineCapRound); pen_->SetEndCap(Gdiplus::LineCapRound); @@ -88,7 +88,7 @@ void Fl_GDIplus_Graphics_Driver::line_style(int style, int width, char* dashes) pen_->SetStartCap(Gdiplus::LineCapFlat); pen_->SetEndCap(Gdiplus::LineCapFlat); } - + if (style & FL_JOIN_MITER ) { pen_->SetLineJoin(Gdiplus::LineJoinMiter); } else if (style & FL_JOIN_BEVEL ) { @@ -96,7 +96,7 @@ void Fl_GDIplus_Graphics_Driver::line_style(int style, int width, char* dashes) } else { pen_->SetLineJoin(Gdiplus::LineJoinRound); } - + if (dashes && *dashes) { int n = 0; while (dashes[n]) n++; Gdiplus::REAL *gdi_dashes = new Gdiplus::REAL[n]; |
