gtk+: apply lower-quality-scaling on fic-gta0[12] to squeeze some more performance...
authorMichael Lauer <mickey@vanille-media.de>
Sat, 4 Aug 2007 20:45:10 +0000 (20:45 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Sat, 4 Aug 2007 20:45:10 +0000 (20:45 +0000)
packages/gtk+/files/lower-quality-scaling-in-pixbuf-engine.patch [new file with mode: 0644]
packages/gtk+/gtk+_2.10.14.bb

diff --git a/packages/gtk+/files/lower-quality-scaling-in-pixbuf-engine.patch b/packages/gtk+/files/lower-quality-scaling-in-pixbuf-engine.patch
new file mode 100644 (file)
index 0000000..6cf1c14
--- /dev/null
@@ -0,0 +1,13 @@
+Index: gtk+-2.6.10/modules/engines/pixbuf/pixbuf-render.c
+===================================================================
+--- gtk+-2.6.10.orig/modules/engines/pixbuf/pixbuf-render.c    2005-08-18 14:11:00.000000000 +0000
++++ gtk+-2.6.10/modules/engines/pixbuf/pixbuf-render.c 2007-05-24 11:16:50.000000000 +0000
+@@ -407,7 +407,7 @@
+                       0, 0, rect.width, rect.height,
+                       dest_x - rect.x, dest_y - rect.y, 
+                       x_scale, y_scale,
+-                      GDK_INTERP_BILINEAR);
++                      GDK_INTERP_NEAREST);
+       g_object_unref (partial_src);
index 3aaa0d6..bee6256 100644 (file)
@@ -1,6 +1,6 @@
 require gtk-2.10.inc
 
-PR = "r1"
+PR = "r2"
 
 # disable per default - untested and not all patches included.
 DEFAULT_PREFERENCE = "-1"
@@ -31,3 +31,8 @@ SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.10/gtk+-${PV}.tar.bz2 \
 #check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
 require gtk-fpu.inc
 EXTRA_OECONF += "${@get_gtk_fpu_setting(bb, d)}"
+
+# try to squeeze some more performance out of it
+SRC_URI_append_fic-gta01 = " file://lower-quality-scaling-in-pixbuf-engine.patch;patch=1"
+SRC_URI_append_fic-gta02 = " file://lower-quality-scaling-in-pixbuf-engine.patch;patch=1"
+