https://bugs.freedesktop.org/show_bug.cgi?id=56808

--- Comment #15 from Korrawit Pruegsanusak <[email protected]> ---
Looking at the first bad commit, the only significant change (excluding
sal_Bool to bool) is:

> @@ -717,13 +701,24 @@ void OutputDevice::ImplDrawBitmap( const Point& 
> rDestPt, const Size& rDestSize,
>              }
>  
>              if ( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight && 
> aPosAry.mnDestWidth && aPosAry.mnDestHeight )
> +            {
> +                const double nScaleX = aPosAry.mnDestWidth  / 
> static_cast<double>( aPosAry.mnSrcWidth );
> +                const double nScaleY = aPosAry.mnDestHeight / 
> static_cast<double>( aPosAry.mnSrcHeight );
> +                // If subsampling, use Bitmap::Scale for subsampling for 
> better quality.
> +                if ( meOutDevType != OUTDEV_PRINTER &&
> +                    nAction == META_BMPSCALE_ACTION &&
> +                    (nScaleX < 1.0 || nScaleY < 1.0) )
> +                {
> +                    aBmp.Scale ( nScaleX, nScaleY );
> +                    aPosAry.mnSrcWidth = aPosAry.mnDestWidth;
> +                    aPosAry.mnSrcHeight = aPosAry.mnDestHeight;
> +                }
>                  mpGraphics->DrawBitmap( &aPosAry, 
> *aBmp.ImplGetImpBitmap()->ImplGetSalBitmap(), this );
> +            }
>          }
>      }
>  }

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to