vcl/source/outdev/bitmap.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 6d964225e7b304332d303c00321d4b036b60353d
Author:     Christopher Sherlock <chris.sherloc...@gmail.com>
AuthorDate: Sat Aug 2 17:14:05 2025 +1000
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Aug 15 07:22:23 2025 +0200

    vcl: remove unnecessary, confusing variables
    
    Change-Id: I2bd079e02500be114eb0c4dde2f349cf179f8fd3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188807
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx
index 1f915c1df72c..7b38a29a6e9a 100644
--- a/vcl/source/outdev/bitmap.cxx
+++ b/vcl/source/outdev/bitmap.cxx
@@ -505,9 +505,6 @@ void OutputDevice::DrawDeviceAlphaBitmapSlowPath(const 
Bitmap& rBitmap,
         aDstRect.SetSize(aDeviceBmp.GetSizePixel());
     }
 
-    const tools::Long nDstWidth = aDstRect.GetWidth();
-    const tools::Long nDstHeight = aDstRect.GetHeight();
-
     // calculate offset in original bitmap
     // in RTL case this is a little more complicated since the contents of the
     // bitmap is not mirrored (it never is), however the paint region and bmp 
region
@@ -534,7 +531,7 @@ void OutputDevice::DrawDeviceAlphaBitmapSlowPath(const 
Bitmap& rBitmap,
         Bitmap aNewBitmap;
 
         aNewBitmap = lcl_BlendBitmapWithAlpha(
-                        aDeviceBmp, rBitmap, rAlpha, nDstHeight, nDstWidth,
+                        aDeviceBmp, rBitmap, rAlpha, aDstRect.GetHeight(), 
aDstRect.GetWidth(),
                         aTradContext.mpMapX.get(), aTradContext.mpMapY.get() );
 
         DrawBitmap(aDstRect.TopLeft(), aNewBitmap);

Reply via email to