X11: Fix drawing of sliders with gtk+ scheme and GUI scaling >= 2 -- continued

Other places where line_delta_ is to be used.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12823 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2018-04-05 21:05:08 +00:00
parent bf0c9d4c6a
commit 798823f7dc

View File

@ -45,7 +45,7 @@ void Fl_Xlib_Graphics_Driver::end_line() {
void Fl_Xlib_Graphics_Driver::end_loop() {
fixloop();
if (n>2) {
transformed_vertex0(p[0].x, p[0].y);
transformed_vertex0(p[0].x - line_delta_, p[0].y - line_delta_);
}
end_line();
}
@ -67,7 +67,7 @@ void Fl_Xlib_Graphics_Driver::begin_complex_polygon() {
void Fl_Xlib_Graphics_Driver::gap() {
while (n>gap_+2 && p[n-1].x == p[gap_].x && p[n-1].y == p[gap_].y) n--;
if (n > gap_+2) {
transformed_vertex0(p[gap_].x, p[gap_].y);
transformed_vertex0(p[gap_].x - line_delta_, p[gap_].y - line_delta_);
gap_ = n;
} else {
n = gap_;