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
This commit is contained in:
Manolo Gouy 2018-04-05 12:23:07 +00:00
parent fe6499790a
commit 43000a228c

View File

@ -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++;
}
}