[gnome-games] preferences-page-video: Add the CRT filter



commit 9e1769cf85058273551f2f608d3204410ed212bd
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Nov 15 16:06:59 2017 +0100

    preferences-page-video: Add the CRT filter

 data/org.gnome.Games.gschema.xml   |    3 ++-
 src/ui/preferences-page-video.vala |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/data/org.gnome.Games.gschema.xml b/data/org.gnome.Games.gschema.xml
index a5fe920..cb3e14f 100644
--- a/data/org.gnome.Games.gschema.xml
+++ b/data/org.gnome.Games.gschema.xml
@@ -2,6 +2,7 @@
   <enum id="org.gnome.Games.video-filters">
     <value nick="smooth" value="0"/>
     <value nick="sharp" value="1"/>
+    <value nick="crt" value="2"/>
   </enum>
   <schema path="/org/gnome/Games/" id="org.gnome.Games" gettext-domain="gnome-games">
     <key name='fullscreen' type='b'>
@@ -12,7 +13,7 @@
     <key name='video-filter' enum='org.gnome.Games.video-filters'>
       <default>'smooth'</default>
       <summary>Video filter</summary>
-      <description>Filter for the game video output. Allowed values are: “smooth” (blurry pixels), “sharp” 
(blocky pixels).</description>
+      <description>Filter for the game video output. Allowed values are: “smooth” (blurry pixels), “sharp” 
(blocky pixels), “crt” (CRT emulation).</description>
     </key>
     <key name="window-maximized" type="b">
       <default>true</default>
diff --git a/src/ui/preferences-page-video.vala b/src/ui/preferences-page-video.vala
index b1dca80..c05f88c 100644
--- a/src/ui/preferences-page-video.vala
+++ b/src/ui/preferences-page-video.vala
@@ -31,8 +31,8 @@ private class Games.PreferencesPageVideo: Gtk.Bin, PreferencesPage {
        }
 
        // same as video-filters in gschema
-       private string[] filter_display_names = { _("Smooth"), _("Sharp") };
-       private string[] filter_names = { "smooth", "sharp" };
+       private string[] filter_display_names = { _("Smooth"), _("Sharp"), _("CRT") };
+       private string[] filter_names = { "smooth", "sharp", "crt" };
        [GtkChild]
        private Gtk.ListBox filter_list_box;
        private Settings settings;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]