From e5b7bd489075f4884a569a460891142104687f2d Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Wed, 20 Aug 2003 14:20:51 +0000 Subject: [PATCH] Wed Aug 20 10:19:50 2003 Michael Jennings (mej) When saving settings, make sure to save the font effects too. Spotted by ptiJo . SVN revision: 7353 --- ChangeLog | 5 +++++ src/options.c | 24 ++++++++++++++++++++++++ utils/Etbg_update_list | 1 - 3 files changed, 29 insertions(+), 1 deletion(-) 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 . +---------------------------------------------------------------------- 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