[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-2/showimg/showimg
From: Richard Groult <Richard.Groult () jalix ! org>
Date: 2004-09-29 7:46:59
Message-ID: 20040929074659.3056F126DA () office ! kde ! org
[Download RAW message or body]
CVS commit by groult:
compilation bug fixed
M +4 -4 imageloader.cpp 1.14
M +2 -2 imageviewer.cpp 1.20
--- kdeextragear-2/showimg/showimg/imageloader.cpp #1.13:1.14
@@ -428,10 +428,10 @@ ImageLoader::finishLoading (ImageLoadEve
{
neww = (int) ceil(image.width () / wexpand);
- newh = (int)ceil(neww*image.height () / image.width ());
+ newh = (int)ceil((double)(neww*image.height () / image.width ()));
}
else
{
newh = (int) ceil(image.height () / hexpand);
- neww = (int) ceil(newh*image.width () / image.height ());
+ neww = (int) ceil((double)(newh*image.width () / image.height ()));
}
image = image.smoothScale(neww, newh);
@@ -466,10 +466,10 @@ ImageLoader::finishLoading (ImageLoadEve
{
neww = (int) ceil(image.width () / wexpand);
- newh = (int)ceil(neww*image.height () / image.width ());
+ newh = (int)ceil((double)(neww*image.height () / image.width ()));
}
else
{
newh = (int) ceil(image.height () / hexpand);
- neww = (int) ceil(newh*image.width () / image.height ());
+ neww = (int) ceil((double)(newh*image.width () / image.height ()));
}
image = image.smoothScale(neww, newh);
--- kdeextragear-2/showimg/showimg/imageviewer.cpp #1.19:1.20
@@ -1952,5 +1952,5 @@ ImageViewer::scrolldyB(int dB)
return;
dragStartPosX=0;
- dragStartPosY=-ceil(dB);
+ dragStartPosY=-ceil((double)dB);
difTopPosX = getVirtualPosX();
difTopPosY = getVirtualPosY();
@@ -1969,5 +1969,5 @@ ImageViewer::scrolldyT(int dT)
return;
dragStartPosX=0;
- dragStartPosY=ceil(dT);
+ dragStartPosY=ceil((double)dT);
difTopPosX = getVirtualPosX();
difTopPosY = getVirtualPosY();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic