Enlightenment CVS committal

Author  : mej
Project : eterm
Module  : Eterm

Dir     : eterm/Eterm/src


Modified Files:
        options.c 


Log Message:
Wed Aug 20 10:19:50 2003                        Michael Jennings (mej)

When saving settings, make sure to save the font effects too.  Spotted
by ptiJo <[EMAIL PROTECTED]>.

===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/options.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -3 -r1.123 -r1.124
--- options.c   10 Jun 2003 16:20:01 -0000      1.123
+++ options.c   20 Aug 2003 14:20:51 -0000      1.124
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: options.c,v 1.123 2003/06/10 16:20:01 mej Exp 
$";
+static const char cvs_ident[] = "$Id: options.c,v 1.124 2003/08/20 14:20:51 mej Exp 
$";
 
 #include "config.h"
 #include "feature.h"
@@ -3175,6 +3175,30 @@
         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) {




-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to