repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 69072c420a2578515e81b7f9e6c1371471707b76:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 69072c420a2578515e81b7f9e6c1371471707b76
Author: Emanuele Giaquinta 
Date:   Wed Nov 2 12:43:50 2011 +0000

    Fix range check on colour in {b,f}gcolor_of that prevented correct
    display of bold bright black, reported by Ben Winslow.

diff --git a/src/rxvt.h b/src/rxvt.h
index bc06d3d278125bb819ec25d051609e10391c56dc..
index ..b27508c038810a892a8881a140ed087911121add 100644
--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -1465,7 +1465,7 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen
 # if ENABLE_STYLES
         && option (Opt_intensityStyles)
 # endif
-        && IN_RANGE_INC (base, minCOLOR, minBrightCOLOR))
+        && IN_RANGE_EXC (base, minCOLOR, minBrightCOLOR))
       base += minBrightCOLOR - minCOLOR;
 #endif
     return base;
@@ -1479,7 +1479,7 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen
 # if ENABLE_STYLES
         && option (Opt_intensityStyles)
 # endif
-        && IN_RANGE_INC (base, minCOLOR, minBrightCOLOR))
+        && IN_RANGE_EXC (base, minCOLOR, minBrightCOLOR))
       base += minBrightCOLOR - minCOLOR;
 #endif
     return base;

-----END OF PAGE-----