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/OpenGL/Fl_OpenGL_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/OpenGL/Fl_OpenGL_Graphics_Driver_line_style.cxx')
| -rw-r--r-- | src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_line_style.cxx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_line_style.cxx b/src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_line_style.cxx index a5f9a3f96..c5698bb4d 100644 --- a/src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_line_style.cxx +++ b/src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_line_style.cxx @@ -33,18 +33,11 @@ #include <FL/Fl.H> #include <FL/fl_draw.H> -extern int fl_line_width_; - // OpenGL implementation does not support custom patterns // OpenGL implementation does not support cap and join types void Fl_OpenGL_Graphics_Driver::line_style(int style, int width, char* dashes) { - // save line width in global variable for X11 clipping - // FIXME: what does this code do? - if (width == 0) fl_line_width_ = 1; - else fl_line_width_ = width>0 ? width : -width; - if (width<1) width = 1; if (style==FL_SOLID) { |
