summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-12-02 14:39:37 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-12-02 14:39:49 +0100
commitd1c7caec3bf726ac137566ced91d067591a71e7e (patch)
tree27c22279a398a4f22ca9152e3d0eb0861eba3203 /src/drivers/WinAPI
parent4171cbe0befc3d9cc1367e0d715fb1dee622d376 (diff)
Improve Fl_Graphics_Driver::cache_size() when GUI is scaled.
The change lets this function enlarge the size only when strictly necessary for image tiling.
Diffstat (limited to 'src/drivers/WinAPI')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
index 659113c3c..998d4f9b9 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
@@ -503,7 +503,7 @@ Fl_WinAPI_Screen_Driver::read_win_rectangle(
int ws, hs;
if (int(s) == s) { ws = w * s; hs = h * s;}
else {
- ws = (w+1)*s; // matches what Fl_Graphics_Driver::cache_size() does
+ ws = (w+1)*s; // approximates what Fl_Graphics_Driver::cache_size() does
hs = (h+1)*s;
if (ws < 1) ws = 1;
if (hs < 1) hs = 1;