summaryrefslogtreecommitdiff
authoralwin <alwin>2004-04-15 07:44:42 (UTC)
committer alwin <alwin>2004-04-15 07:44:42 (UTC)
commit41203805fb5e70df84cc2894dbd6e030c6355041 (patch) (side-by-side diff)
tree3bffe09aeff1a69d9912193c481a2effe990d5db
parent20175bc18b278426c80ff890853cbf54839f88be (diff)
downloadopie-41203805fb5e70df84cc2894dbd6e030c6355041.zip
opie-41203805fb5e70df84cc2894dbd6e030c6355041.tar.gz
opie-41203805fb5e70df84cc2894dbd6e030c6355041.tar.bz2
using other values when scaled loading of jpegs
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiemm/oimagescrollview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiemm/oimagescrollview.cpp b/libopie2/opiemm/oimagescrollview.cpp
index 0e86bd0..68b06af 100644
--- a/libopie2/opiemm/oimagescrollview.cpp
+++ b/libopie2/opiemm/oimagescrollview.cpp
@@ -75,49 +75,49 @@ void OImageScrollView::setImage(const QImage&img)
m_lastName = "";
setImageIsJpeg(false);
setImageScaledLoaded(false);
if (FirstResizeDone()) {
generateImage();
}
}
void OImageScrollView::loadJpeg(bool interncall)
{
if (m_lastName.isEmpty()) return;
QImageIO iio( m_lastName, 0l );
QString param;
bool real_load = false;
if (AutoScale()) {
if (!interncall) {
int wid, hei;
wid = QApplication::desktop()->width();
hei = QApplication::desktop()->height();
if (hei>wid) {
wid = hei;
} else {
hei = wid;
}
- param = QString( "Fast Shrink( 7 ) Scale( %1, %2, ScaleFree)" ).arg( wid ).arg( hei );
+ param = QString( "Fast Shrink( 3 ) Scale( %1, %2, ScaleFree)" ).arg( wid ).arg( hei );
odebug << "Load jpeg scaled \"" << param << "\"" << oendl;
iio.setParameters(param.latin1());
setImageScaledLoaded(true);
real_load = true;
}
} else {
if (ImageScaledLoaded()||!interncall) {
odebug << "Load jpeg unscaled" << oendl;
real_load = true;
}
setImageScaledLoaded(false);
}
if (real_load) {
{
QCopEnvelope( "QPE/System", "busy()" );
}
_original_data = iio.read() ? iio.image() : QImage();
{
QCopEnvelope env( "QPE/System", "notBusy(QString)" );
env << "Image loaded";
}
}
}