summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-08-07 07:24:36 +0000
committerManolo Gouy <Manolo>2018-08-07 07:24:36 +0000
commit72cc8b9b238b391c4b804b1f1c487dfb73c03eef (patch)
tree3932d0bbabaf2489bbe7786292e41b15b87220a0
parent205570d1340e6109ef721053cebfb7f9acb0255a (diff)
Fix for STR #3483: support for tiled images when the display is rescaled.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-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 4a3b39711..7545bc261 100644
--- a/src/Fl_Graphics_Driver.cxx
+++ b/src/Fl_Graphics_Driver.cxx
@@ -207,8 +207,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() - 1;
- height = (height+1) * scale() - 1;
+ width = (width+1) * scale();
+ height = (height+1) * scale();
}
}