[gegl] bin: add nearest neighbor to preferences
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] bin: add nearest neighbor to preferences
- Date: Wed, 15 May 2019 09:41:18 +0000 (UTC)
commit 1fe4b8d6eb5dcce2e2ebb183f1b82e30c97c9d46
Author: Øyvind Kolås <pippin gimp org>
Date: Tue May 14 22:55:38 2019 +0200
bin: add nearest neighbor to preferences
bin/lua/preferences.lua | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
---
diff --git a/bin/lua/preferences.lua b/bin/lua/preferences.lua
index a80acc76f..f91ef9dfd 100644
--- a/bin/lua/preferences.lua
+++ b/bin/lua/preferences.lua
@@ -8,6 +8,24 @@ mrg:print("Preferences\n");
mrg:set_style("font-size: 6vh");
+mrg:text_listen(Mrg.PRESS, function(ev)
+ if o.nearest_neighbor ~= 0 then
+ o.nearest_neighbor = 0
+ else
+ o.nearest_neighbor = 1
+ end
+ ev:stop_propagate()
+end)
+mrg:print("nearest neighbour")
+if o.nearest_neighbor ~= 0 then
+ mrg:print(" yes")
+else
+ mrg:print(" no")
+end
+mrg:print("\n")
+mrg:text_listen_done ()
+
+
mrg:text_listen(Mrg.PRESS, function(ev)
if Gegl.config().mipmap_rendering then
Gegl.config().mipmap_rendering = false
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]