[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 186188] (patch) wallpaper image is not scaled to correct size
From:       Paolo Capriotti <p.capriotti () gmail ! com>
Date:       2009-10-21 14:53:24
Message-ID: 20091021145324.08A8B23F25 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=186188





--- Comment #5 from Paolo Capriotti <p capriotti gmail com>  2009-10-21 16:53:12 ---
+1 for the patch.

The line

    imgSize *= ratio;

doesn't actually affect the computation of scaledSize. The only other place
where it's used is line 241:

    if (scaledSize != imgSize) {
      img = img.scaled(scaledSize, Qt::IgnoreAspectRatio,
Qt::SmoothTransformation);
    }

which I think is the actual mistake, and should be replaced by img.size(). With
your patch imgSize == img.size() so the problem should be solved.

I haven't done any testing, though.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic