diff options
author | Michael Jennings <mej@kainx.org> | 2003-08-20 14:20:51 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2003-08-20 14:20:51 +0000 |
commit | e5b7bd489075f4884a569a460891142104687f2d (patch) | |
tree | 07067970761731b12249965b13eba90a67fbaf6c | |
parent | 16a35e6a1ef1322021114837a8f3592ff5b4c662 (diff) | |
download | eterm-e5b7bd489075f4884a569a460891142104687f2d.tar.gz |
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>.
SVN revision: 7353
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/options.c | 24 | ||||
-rwxr-xr-x | utils/Etbg_update_list | 1 |
3 files changed, 29 insertions, 1 deletions
@@ -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 |