From 43000a228c86e8f343cb417fb0298a157e722860 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 5 Apr 2018 12:23:07 +0000 Subject: [PATCH] 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 --- src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx | 4 ++-- 1 file 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++; } }