# HG changeset patch # User Vladimir Nadvornik # Date 1300615868 -3600 # Node ID 5f724783a871c9f4ac18be231e6c50ca5cad1ffc # Parent e250a4b383010b538fcab6a13b27115b7d399ac9 save and load stereo options diff -r e250a4b38301 -r 5f724783a871 src/rcfile.c --- 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); }