summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-04-05 12:23:07 +0000
committerManolo Gouy <Manolo>2018-04-05 12:23:07 +0000
commit43000a228c86e8f343cb417fb0298a157e722860 (patch)
tree7cfcaa19bfb8c0ed946eb6b47181bbeee2532863 /src/drivers
parentfe6499790a10b27b1416bfded93dd080d16e149f (diff)
X11: Fix drawing of sliders with gtk+ scheme and GUI scaling >= 2 that left footprints when moved.
The fix is to use the X11 graphics driver's line_delta_ private member variable also when drawing complex shapes with fl_begin_loop(). The gtk+ scheme does use fl_begin_loop() to draw its frames. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12821 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx
index 7d4cf1298..946f8f8c1 100644
--- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx
+++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx
@@ -115,8 +115,8 @@ void Fl_Xlib_Graphics_Driver::transformed_vertex0(float fx, float fy) {
p_size = p ? 2*p_size : 16;
p = (XPOINT*)realloc((void*)p, p_size*sizeof(*p));
}
- p[n].x = x;
- p[n].y = y;
+ p[n].x = x + line_delta_;
+ p[n].y = y + line_delta_;
n++;
}
}