save and load stereo options
authorVladimir Nadvornik <nadvornik@suse.cz>
Sun, 20 Mar 2011 10:11:08 +0000 (11:11 +0100)
committerVladimir Nadvornik <nadvornik@suse.cz>
Tue, 27 Sep 2011 12:30:08 +0000 (14:30 +0200)
src/rcfile.c

index ac93886..ae415b9 100644 (file)
@@ -442,6 +442,15 @@ static void write_global_attributes(GString *outstr, gint indent)
        WRITE_NL(); WRITE_BOOL(*options, metadata.keywords_case_sensitive);
        WRITE_NL(); WRITE_BOOL(*options, metadata.write_orientation);
 
+       WRITE_NL(); WRITE_UINT(*options, stereo.mode);
+       WRITE_NL(); WRITE_UINT(*options, stereo.fsmode);
+       WRITE_NL(); WRITE_BOOL(*options, stereo.enable_fsmode);
+       WRITE_NL(); WRITE_UINT(*options, stereo.fixed_w);
+       WRITE_NL(); WRITE_UINT(*options, stereo.fixed_h);
+       WRITE_NL(); WRITE_UINT(*options, stereo.fixed_x1);
+       WRITE_NL(); WRITE_UINT(*options, stereo.fixed_y1);
+       WRITE_NL(); WRITE_UINT(*options, stereo.fixed_x2);
+       WRITE_NL(); WRITE_UINT(*options, stereo.fixed_y2);
 }
 
 static void write_color_profile(GString *outstr, gint indent)
@@ -703,6 +712,16 @@ static gboolean load_global_params(const gchar **attribute_names, const gchar **
                if (READ_BOOL(*options, metadata.keywords_case_sensitive)) continue;
                if (READ_BOOL(*options, metadata.write_orientation)) continue;
 
+               if (READ_UINT(*options, stereo.mode)) continue;
+               if (READ_UINT(*options, stereo.fsmode)) continue;
+               if (READ_BOOL(*options, stereo.enable_fsmode)) continue;
+               if (READ_UINT(*options, stereo.fixed_w)) continue;
+               if (READ_UINT(*options, stereo.fixed_h)) continue;
+               if (READ_UINT(*options, stereo.fixed_x1)) continue;
+               if (READ_UINT(*options, stereo.fixed_y1)) continue;
+               if (READ_UINT(*options, stereo.fixed_x2)) continue;
+               if (READ_UINT(*options, stereo.fixed_y2)) continue;
+
                log_printf("unknown attribute %s = %s\n", option, value);
                }