diff options
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]; |
