|
|
|
@ -225,10 +225,10 @@ void ImageItem::createImage()
|
|
|
|
|
{
|
|
|
|
|
if( DocumentItem::paintDevice()->isExtDev() )
|
|
|
|
|
img = img.smoothScale( rect().width(), rect().height(),
|
|
|
|
|
(m_scaling == eImage_Scaled ? TQ_ScaleMin : TQ_ScaleFree) );
|
|
|
|
|
(m_scaling == eImage_Scaled ? TQImage::ScaleMin : TQImage::ScaleFree) );
|
|
|
|
|
else
|
|
|
|
|
img = img.scale( rect().width(), rect().height(),
|
|
|
|
|
(m_scaling == eImage_Scaled ? TQ_ScaleMin : TQ_ScaleFree) );
|
|
|
|
|
(m_scaling == eImage_Scaled ? TQImage::ScaleMin : TQImage::ScaleFree) );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@ -239,7 +239,7 @@ void ImageItem::createImage()
|
|
|
|
|
|
|
|
|
|
img = img.smoothScale( (int)(img.width() * ((double)metrics.logicalDpiX()/TQPaintDevice::x11AppDpiX())),
|
|
|
|
|
(int)(img.height() * ((double)metrics.logicalDpiY()/TQPaintDevice::x11AppDpiY())),
|
|
|
|
|
TQ_ScaleMin );
|
|
|
|
|
TQImage::ScaleMin );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|