[arch-commits] Commit in eog/trunk (2 files)
Jan Steffens
heftig at archlinux.org
Tue Jan 29 19:24:55 UTC 2019
Date: Tuesday, January 29, 2019 @ 19:24:52
Author: heftig
Revision: 344924
3.28.4+5+ge02a9ae0-1
Added:
eog/trunk/0001-EogScrollView-Set-scale-1-for-the-image-surface.patch
Modified:
eog/trunk/PKGBUILD
------------------------------------------------------------+
0001-EogScrollView-Set-scale-1-for-the-image-surface.patch | 30 +++++++++++
PKGBUILD | 17 ++++--
2 files changed, 42 insertions(+), 5 deletions(-)
Added: 0001-EogScrollView-Set-scale-1-for-the-image-surface.patch
===================================================================
--- 0001-EogScrollView-Set-scale-1-for-the-image-surface.patch (rev 0)
+++ 0001-EogScrollView-Set-scale-1-for-the-image-surface.patch 2019-01-29 19:24:52 UTC (rev 344924)
@@ -0,0 +1,30 @@
+From c2e8cc6b1f1a22227d475e145de9fa847a4c407d Mon Sep 17 00:00:00 2001
+Message-Id: <c2e8cc6b1f1a22227d475e145de9fa847a4c407d.1548789435.git.jan.steffens at gmail.com>
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Tue, 29 Jan 2019 20:07:03 +0100
+Subject: [PATCH] EogScrollView: Set scale=1 for the image surface
+
+Rendering the pixbuf to a surface with a different scale will apply
+filtering, which we don't want at this step.
+
+This fixes zoomed-in images being blurry even when anti-aliasing has
+been disabled.
+---
+ src/eog-scroll-view.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
+index 76ca8d49..93eb1c51 100644
+--- a/src/eog-scroll-view.c
++++ b/src/eog-scroll-view.c
+@@ -211,6 +211,7 @@ create_surface_from_pixbuf (EogScrollView *view, GdkPixbuf *pixbuf)
+ CAIRO_CONTENT_COLOR | CAIRO_CONTENT_ALPHA,
+ gdk_pixbuf_get_width (pixbuf),
+ gdk_pixbuf_get_height (pixbuf));
++ cairo_surface_set_device_scale (surface, 1.0, 1.0);
+ cr = cairo_create (surface);
+ gdk_cairo_set_source_pixbuf (cr, pixbuf, 0, 0);
+ cairo_paint (cr);
+--
+2.20.1
+
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-29 16:16:36 UTC (rev 344923)
+++ PKGBUILD 2019-01-29 19:24:52 UTC (rev 344924)
@@ -2,8 +2,8 @@
# Contributor: Jan de Groot <jgc at archlinux.org>
pkgname=eog
-pkgver=3.28.4
-pkgrel=2
+pkgver=3.28.4+5+ge02a9ae0
+pkgrel=1
pkgdesc="Eye of Gnome: An image viewing and cataloging program"
url="https://wiki.gnome.org/Apps/EyeOfGnome"
arch=(x86_64)
@@ -13,9 +13,11 @@
optdepends=('eog-plugins: Additional features')
groups=(gnome)
options=(!emptydirs)
-_commit=cc4251a53feced98507abc284d90781130f59de7 # tags/3.28.4^0
-source=("git+https://gitlab.gnome.org/GNOME/eog.git#commit=$_commit")
-sha256sums=('SKIP')
+_commit=e02a9ae0c7120538a2711929ff4e16d41a7d67aa # gnome-3-28
+source=("git+https://gitlab.gnome.org/GNOME/eog.git#commit=$_commit"
+ 0001-EogScrollView-Set-scale-1-for-the-image-surface.patch)
+sha256sums=('SKIP'
+ '5d2c0dea7f1775fd54a0568984bcd72854b29a414d14201dadf15d4f92b42cb9')
pkgver() {
cd $pkgname
@@ -22,6 +24,11 @@
git describe --tags | sed 's/-/+/g'
}
+prepare() {
+ cd $pkgname
+ patch -Np1 -i ../0001-EogScrollView-Set-scale-1-for-the-image-surface.patch
+}
+
build() {
arch-meson $pkgname build -D gtk_doc=true
ninja -C build
More information about the arch-commits
mailing list