diff src/rcfile.c @ 468:2df505c60459

Replace fullscreen.info and fullscreen.show_info options by: image_overlay.common.enabled => to save last state to rc file image_overlay.common.show_at_startup => overrides .common.enabled at startup image_overlay.common.template_string => replace fullscreen.info common is used since for now there is only one image overlay setup, later specific setups may be added.
author zas_
date Mon, 21 Apr 2008 20:01:22 +0000
parents 7a69309b91c8
children 3ad502287ff4
line wrap: on
line diff
--- a/src/rcfile.c	Mon Apr 21 19:42:58 2008 +0000
+++ b/src/rcfile.c	Mon Apr 21 20:01:22 2008 +0000
@@ -427,8 +427,11 @@
 	WRITE_BOOL(fullscreen.clean_flip);
 	WRITE_BOOL(fullscreen.disable_saver);
 	WRITE_BOOL(fullscreen.above);
-	WRITE_BOOL(fullscreen.show_info);
-	WRITE_CHAR(fullscreen.info);
+
+	WRITE_SUBTITLE("Image Overlay Options");
+	WRITE_BOOL(image_overlay.common.enabled);
+	WRITE_BOOL(image_overlay.common.show_at_startup);
+	WRITE_CHAR(image_overlay.common.template_string);
 
 	WRITE_SUBTITLE("Slideshow Options");
 
@@ -703,11 +706,13 @@
 		READ_BOOL(fullscreen.clean_flip);
 		READ_BOOL(fullscreen.disable_saver);
 		READ_BOOL(fullscreen.above);
-		READ_BOOL(fullscreen.show_info);
-		READ_CHAR(fullscreen.info);
+
+		/* image overlay */
+		READ_BOOL(image_overlay.common.enabled);
+		READ_BOOL(image_overlay.common.show_at_startup);
+		READ_CHAR(image_overlay.common.template_string);
 
 		/* slideshow options */
-
 		READ_INT_UNIT(slideshow.delay, SLIDESHOW_SUBSECOND_PRECISION);
 		READ_BOOL(slideshow.random);
 		READ_BOOL(slideshow.repeat);