[Libreoffice-commits] core.git: vcl/quartz
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 4 17:59:29 UTC 2019
vcl/quartz/salgdicommon.cxx | 6 ------
1 file changed, 6 deletions(-)
New commits:
commit 9c8478d428293c6223c8d1bdd1e93f7729b6d952
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Jun 4 18:58:56 2019 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Tue Jun 4 20:52:50 2019 +0300
tdf#122221: Bin apparently unnecessary early return
Removing these few lines of code fixes the problem on iOS, and has no
apparent ill effect on macOS. But sure, I didn't check that thoroughly
on macOS, so in case this has a bad effect on macOS after all, need to
reinstate the few lines but make them #ifndef IOS.
(Still passes make check.)
Change-Id: I2380d010ba223a698acfe916fca4580a1502be98
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 333c23c93035..af70708eb0f2 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -587,12 +587,6 @@ bool AquaSalGraphics::drawAlphaBitmap( const SalTwoRect& rTR,
const SalBitmap& rSrcBitmap,
const SalBitmap& rAlphaBmp )
{
- if (rTR.mnSrcWidth != rTR.mnDestWidth || rTR.mnSrcHeight != rTR.mnDestHeight)
- {
- // TODO - would be better to scale it by the native code
- return false;
- }
-
// An image mask can't have a depth > 8 bits (should be 1 to 8 bits)
if( rAlphaBmp.GetBitCount() > 8 )
return false;
More information about the Libreoffice-commits
mailing list