Merge lp:~teemperor/pantheon-greeter/fix-1167855-downsampling into lp:~elementary-pantheon/pantheon-greeter/trunk

Proposed by Raphael Isemann
Status: Merged
Merged at revision: 184
Proposed branch: lp:~teemperor/pantheon-greeter/fix-1167855-downsampling
Merge into: lp:~elementary-pantheon/pantheon-greeter/trunk
Diff against target: 15 lines (+2/-2)
1 file modified
src/Wallpaper.vala (+2/-2)
To merge this branch: bzr merge lp:~teemperor/pantheon-greeter/fix-1167855-downsampling
Reviewer Review Type Date Requested Status
Cody Garver (community) Approve
Review via email: mp+161323@code.launchpad.net

Description of the change

Changed interpolation method as nearest produce the expected ugly results. Speed should be okay as i don't expect that people with slower PC's have ultra-HD-wallpapers or similiar.

To post a comment you must log in.
Revision history for this message
Cody Garver (codygarver) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Wallpaper.vala'
2--- src/Wallpaper.vala 2013-02-27 15:26:48 +0000
3+++ src/Wallpaper.vala 2013-04-28 10:42:32 +0000
4@@ -158,9 +158,9 @@
5 float hw = (float)h/w*rw;
6 float wh = (float)w/h*rh;
7 if (h < w) {
8- return pixbuf.scale_simple (rw, (int) (hw), Gdk.InterpType.NEAREST);
9+ return pixbuf.scale_simple (rw, (int) (hw), Gdk.InterpType.BILINEAR);
10 } else {
11- return pixbuf.scale_simple ((int) (wh), rh, Gdk.InterpType.NEAREST);
12+ return pixbuf.scale_simple ((int) (wh), rh, Gdk.InterpType.BILINEAR);
13 }
14 }
15 return pixbuf;

Subscribers

People subscribed via source and target branches