misc.cpp
changeset 104 270593ab83b2
parent 95 f688a9913724
child 129 9b9c7e8b9147
     1.1 --- a/misc.cpp	Mon Apr 18 06:17:00 2005 +0000
     1.2 +++ b/misc.cpp	Mon May 30 05:39:10 2005 +0000
     1.3 @@ -1,8 +1,6 @@
     1.4  #include <qregexp.h>
     1.5  #include <qpoint.h>
     1.6  
     1.7 -#include <cmath>
     1.8 -
     1.9  #include "misc.h"
    1.10  
    1.11  
    1.12 @@ -223,13 +221,13 @@
    1.13  		if (pix.width()>max_w)
    1.14  		{
    1.15  			r=max_w / pix.width();
    1.16 -			pix.resize(lrint(pix.width()*r), lrint(pix.height()*r));
    1.17 +			pix.resize(qRound(pix.width()*r), qRound(pix.height()*r));
    1.18  			// TODO not a resize, but a shrink/enlarge is needed here...
    1.19  		}
    1.20  		if (pix.height()>max_h)
    1.21  		{
    1.22  			r=max_h / pix.height();
    1.23 -			pix.resize(lrint(pix.width()*r), lrint(pix.height()*r));
    1.24 +			pix.resize(qRound(pix.width()*r), qRound(pix.height()*r));
    1.25  			// TODO not a resize, but a shrink/enlarge is needed here...
    1.26  		}
    1.27          setPixmap( pix );