From 8fccb7384233b82ffb1a3e3be58dd3488d581e47 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 3 Jan 2018 16:28:00 +0000 Subject: 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 --- src/Fl_Graphics_Driver.cxx | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3