drawinglayer/source/processor2d/vclhelperbufferdevice.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit b5ce5764530ca7f4ee39b7adb9262072d2b96407 Author: Daniel <[email protected]> AuthorDate: Tue Dec 2 23:29:59 2025 -0800 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Wed Dec 3 10:52:53 2025 +0100 tdf#114441 Replace sal_uLong with sal_uInt64 GetOutputWidthPixel() and GetOutputHeightPixel() both return a value of type tools::Long, representing an offset width and height in pixels. Since aSquare and aCandidateSquare multiply these values, it seems reasonable to use sal_uInt64 here just in case of larger displays. Change-Id: Idacf8e7c43e884b72699ee1d521d1e0dbf4715a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194942 Reviewed-by: Ilmari Lauhakangas <[email protected]> Tested-by: Jenkins diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx index 898622f6b1cc..797b22c28fe1 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx @@ -169,10 +169,10 @@ VclPtr<VirtualDevice> VDevBuffer::alloc(OutputDevice& rOutDev, const Size& rSize if (bCandidateOkay) { // found and candidate are valid - const sal_uLong aSquare(aFound->buf->GetOutputWidthPixel() - * aFound->buf->GetOutputHeightPixel()); - const sal_uLong aCandidateSquare(a->buf->GetOutputWidthPixel() - * a->buf->GetOutputHeightPixel()); + const sal_uInt64 aSquare(aFound->buf->GetOutputWidthPixel() + * aFound->buf->GetOutputHeightPixel()); + const sal_uInt64 aCandidateSquare(a->buf->GetOutputWidthPixel() + * a->buf->GetOutputHeightPixel()); if (aCandidateSquare < aSquare) {
