summaryrefslogtreecommitdiff
path: root/src/Fl_Graphics_Driver.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-05-03 08:37:58 +0000
committerManolo Gouy <Manolo>2018-05-03 08:37:58 +0000
commitbd4679f8d4fdfe7e8cec72865358370df6e56292 (patch)
tree1518f88c22bbca56455e6ccc3583592cee6e38eb /src/Fl_Graphics_Driver.cxx
parent5da16bbd36ebfb76f4af296929aa961c0bfc036a (diff)
Fix fl_overlay_rect() under X11 and Windows when GUI is scaled.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Graphics_Driver.cxx')
-rw-r--r--src/Fl_Graphics_Driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Graphics_Driver.cxx b/src/Fl_Graphics_Driver.cxx
index d65fb306d..648a9f2d0 100644
--- a/src/Fl_Graphics_Driver.cxx
+++ b/src/Fl_Graphics_Driver.cxx
@@ -206,8 +206,8 @@ void Fl_Graphics_Driver::cache_size(Fl_Image *img, int &width, int &height)
width = width * scale();
height = height * scale();
} else {
- width = (width+1) * scale();
- height = (height+1) * scale();
+ width = (width+1) * scale() - 1;
+ height = (height+1) * scale() - 1;
}
}