changeset 1893:5f724783a871

save and load stereo options
author Vladimir Nadvornik <nadvornik@suse.cz>
date Sun, 20 Mar 2011 11:11:08 +0100
parents e250a4b38301
children f0412c60e9f6
files src/rcfile.c
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/rcfile.c	Sun Mar 20 10:52:41 2011 +0100
+++ b/src/rcfile.c	Sun Mar 20 11:11:08 2011 +0100
@@ -442,6 +442,15 @@
 	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 @@
 		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);
 		}