summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/options.c24
-rwxr-xr-xutils/Etbg_update_list1
3 files changed, 29 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6afa2e5..314121e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5075,3 +5075,8 @@ script. You can now pass "-m /path/to/menufile" to Etbg_update_list
to generate the entries in the specified file. Hopefully I'll make
this process automated, at least on my end, in the near future.
----------------------------------------------------------------------
+Wed Aug 20 10:19:50 2003 Michael Jennings (mej)
+
+When saving settings, make sure to save the font effects too. Spotted
+by ptiJo <ptiJo@noos.fr>.
+----------------------------------------------------------------------
diff --git a/src/options.c b/src/options.c
index 4207e00..c59436a 100644
--- a/src/options.c
+++ b/src/options.c
@@ -3175,6 +3175,30 @@ save_config(char *path, unsigned char save_theme)
fprintf(fp, " font bold %s\n", rs_boldFont);
}
#endif
+ if (fshadow.do_shadow) {
+ const char *corners[] = {
+ "top_left",
+ "top_right",
+ "bottom_left",
+ "bottom_right"
+ };
+ unsigned char shad = 0;
+
+ fprintf(fp, " font effects");
+ for (i = 0; i < 4; i++) {
+ if (fshadow.shadow[i]) {
+ fprintf(fp, " %s 0x%08x", corners[i], (unsigned int) fshadow.color[i]);
+ shad = 1;
+ }
+ }
+ if (shad) {
+ fprintf(fp, "\n");
+ } else {
+ fprintf(fp, " none\n");
+ }
+ } else {
+ fprintf(fp, " font effects none\n");
+ }
fprintf(fp, "end attributes\n\n");
if (save_theme) {
diff --git a/utils/Etbg_update_list b/utils/Etbg_update_list
index a515300..542d10b 100755
--- a/utils/Etbg_update_list
+++ b/utils/Etbg_update_list
@@ -7,7 +7,6 @@
LISTFILE=pixmaps.list
if [ "x$1" = "x-m" ]; then
- echo "Mmmm, got menu file $2"
shift
ETBG_MENUFILE="$1"
export ETBG_MENUFILE