summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-25 21:16:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-26 12:06:35 +0100
commit26a750aac8e6bcf3d6d064ac6ef59005f95e34c3 (patch)
tree4c26a2403292ab69fc440f0bb5b0909a64adf2d0 /svtools
parentb15638440d692dd8cce55c0e936fbb82d24f8414 (diff)
give more wriggle room to avoid hitting max pixmap size with super hidpi
Change-Id: I28d9b7333b52db46c85e6ae51265b3a4bd993c98 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128968 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 72b995d5ad83..1b27be221943 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -342,7 +342,7 @@ namespace
gUserItemSz.setHeight(gUserItemSz.Height() * 16);
gUserItemSz.setHeight(gUserItemSz.Height() / 10);
- size_t nMaxDeviceHeight = SAL_MAX_INT16 / 2; // see limitXCreatePixmap
+ size_t nMaxDeviceHeight = SAL_MAX_INT16 / 16; // see limitXCreatePixmap and be generous wrt up to x16 hidpi
gPreviewsPerDevice = nMaxDeviceHeight / gUserItemSz.Height();
}
}