comparison src/rcfile.c @ 618:b1a922a32d9c

Save full OSD state to rc file and restore it on startup. It allows to restore OSD with or without histogram depending on previous state.
author zas_
date Sat, 10 May 2008 09:00:14 +0000
parents 21864cc96369
children 1fa2cb6d9d65
comparison
equal deleted inserted replaced
617:aa883b6d2ef6 618:b1a922a32d9c
446 WRITE_UINT(histogram.last_channel_mode); 446 WRITE_UINT(histogram.last_channel_mode);
447 WRITE_UINT(histogram.last_log_mode); 447 WRITE_UINT(histogram.last_log_mode);
448 448
449 449
450 WRITE_SUBTITLE("Image Overlay Options"); 450 WRITE_SUBTITLE("Image Overlay Options");
451 WRITE_BOOL(image_overlay.common.enabled); 451 WRITE_UINT(image_overlay.common.enabled);
452 WRITE_BOOL(image_overlay.common.show_at_startup); 452 WRITE_BOOL(image_overlay.common.show_at_startup);
453 WRITE_CHAR(image_overlay.common.template_string); 453 WRITE_CHAR(image_overlay.common.template_string);
454 454
455 455
456 WRITE_SUBTITLE("Slideshow Options"); 456 WRITE_SUBTITLE("Slideshow Options");
750 READ_UINT(histogram.last_log_mode); 750 READ_UINT(histogram.last_log_mode);
751 751
752 /* image overlay */ 752 /* image overlay */
753 COMPAT_READ_BOOL(fullscreen.show_info, image_overlay.common.show_at_startup); 753 COMPAT_READ_BOOL(fullscreen.show_info, image_overlay.common.show_at_startup);
754 COMPAT_READ_CHAR(fullscreen.info, image_overlay.common.template_string); 754 COMPAT_READ_CHAR(fullscreen.info, image_overlay.common.template_string);
755 READ_BOOL(image_overlay.common.enabled); 755 READ_UINT(image_overlay.common.enabled);
756 READ_BOOL(image_overlay.common.show_at_startup); 756 READ_BOOL(image_overlay.common.show_at_startup);
757 READ_CHAR(image_overlay.common.template_string); 757 READ_CHAR(image_overlay.common.template_string);
758 758
759 /* slideshow options */ 759 /* slideshow options */
760 READ_INT_UNIT(slideshow.delay, SLIDESHOW_SUBSECOND_PRECISION); 760 READ_INT_UNIT(slideshow.delay, SLIDESHOW_SUBSECOND_PRECISION);