svtools/source/control/ctrlbox.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 26a750aac8e6bcf3d6d064ac6ef59005f95e34c3
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Jan 25 21:16:24 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Jan 26 12:06:35 2022 +0100

    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 <caol...@redhat.com>

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();
     }
 }

Reply via email to