Enlightenment CVS committal

Author  : mej
Project : eterm
Module  : Eterm

Dir     : eterm/Eterm/src


Modified Files:
        screen.c 


Log Message:
Tue Apr 26 14:38:20 2005                        Michael Jennings (mej)

Patch from Bryan Kadzban <[EMAIL PROTECTED]> to fix unsetting
of bold/blink attribute.
----------------------------------------------------------------------

===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/screen.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -3 -r1.85 -r1.86
--- screen.c    25 Apr 2005 19:37:23 -0000      1.85
+++ screen.c    26 Apr 2005 18:40:14 -0000      1.86
@@ -3,7 +3,7 @@
  *
  */
 
-static const char cvs_ident[] = "$Id: screen.c,v 1.85 2005/04/25 19:37:23 mej 
Exp $";
+static const char cvs_ident[] = "$Id: screen.c,v 1.86 2005/04/26 18:40:14 mej 
Exp $";
 
 #include "config.h"
 #include "feature.h"
@@ -504,6 +504,19 @@
                         }
                         break;
                 }
+            } else if (!(rstyle & Intensity) && ((int) color >= minBright) && 
(color <= maxBright)) {
+                switch (Intensity) {
+                    case RS_Bold:
+                        if (BITFIELD_IS_SET(vt_options, 
VT_OPTIONS_BOLD_BRIGHTENS_FOREGROUND)) {
+                            color -= (minBright - minColor);
+                        }
+                        break;
+                    case RS_Blink:
+                        if (BITFIELD_IS_SET(vt_options, 
VT_OPTIONS_BLINK_BRIGHTENS_BACKGROUND)) {
+                            color -= (minBright - minColor);
+                        }
+                        break;
+                }
             }
         }
     }




-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to