diff options
| author | Manolo Gouy <Manolo> | 2018-01-03 16:28:00 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-01-03 16:28:00 +0000 |
| commit | 8fccb7384233b82ffb1a3e3be58dd3488d581e47 (patch) | |
| tree | 67fac2ab01def999413098ce35b89f6ccac49e32 | |
| parent | 5d97cf1f9666b3956a584f656d81ab7aebba2a05 (diff) | |
Restore correct fl_overlay_rect() when GUI is scaled (was broken by commit r.12595)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12618 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_Graphics_Driver.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Fl_Graphics_Driver.cxx b/src/Fl_Graphics_Driver.cxx index 6bbc8acb6..7c09a7cc6 100644 --- a/src/Fl_Graphics_Driver.cxx +++ b/src/Fl_Graphics_Driver.cxx @@ -293,15 +293,7 @@ void Fl_Scalable_Graphics_Driver::loop(int x0, int y0, int x1, int y1, int x2, i } void Fl_Scalable_Graphics_Driver::loop(int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3) { - if ( (x0==x1 || y0==y1) && (x2==x1 || y2==y1) && (x2==x3 || y2==y3) && (x0==x3 || y0==y3) ) { - // only horizontal and vertical lines - line(x0, y0, x1, y1); - line(x1, y1, x2, y2); - line(x2, y2, x3, y3); - line(x3, y3, x0, y0); - } else { loop_unscaled(x0*scale_, y0*scale_, x1*scale_, y1*scale_, x2*scale_, y2*scale_, x3*scale_, y3*scale_); - } } void Fl_Scalable_Graphics_Driver::polygon(int x0, int y0, int x1, int y1, int x2, int y2) { |
