diff options
| author | Manolo Gouy <Manolo> | 2016-11-16 19:56:22 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-11-16 19:56:22 +0000 |
| commit | 2baeda448b2680e2cca5cf314dd6430db721feab (patch) | |
| tree | 1e643118496df481e715b615ec88b3b00c16ec36 /src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx | |
| parent | 44ce401d455c7a017993c3a19f1324dc307db2b5 (diff) | |
Replace global fl_line_width_ used only by X11 platform by Fl_Xlib_Graphics_Driver::line_width_
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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.cxx | 11 |
1 files changed, 3 insertions, 8 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 012b21f5c..a10ce7972 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx @@ -34,16 +34,11 @@ #include "Fl_Xlib_Graphics_Driver.H" -// We save the current line width (absolute value) here. -// This is currently used only for X11 clipping, see src/fl_rect.cxx. -// FIXME: this would probably better be in class Fl:: -extern int fl_line_width_; - void Fl_Xlib_Graphics_Driver::line_style(int style, int width, char* dashes) { - // save line width in global variable for X11 clipping - if (width == 0) fl_line_width_ = 1; - else fl_line_width_ = width>0 ? width : -width; + // save line width for X11 clipping + if (width == 0) line_width_ = 1; + else line_width_ = width>0 ? width : -width; int ndashes = dashes ? strlen(dashes) : 0; // emulate the WIN32 dash patterns on X |
