commit a21c1afe92a6afb68ace6fc6a917d7ceb2982822 from: marcus date: Thu Jan 10 21:05:32 2002 UTC changed the color handling to support bright and lower attribute correctly. commit - b6431b17d1713dacda00a0c360452978b071d956 commit + a21c1afe92a6afb68ace6fc6a917d7ceb2982822 blob - 0d3aab2e07e08dc90c93a0c5a202900926d74565 blob + c9abad2639d4f21adde7c1115be90668dd3e4dc0 --- de/mud/terminal/VDU.java +++ de/mud/terminal/VDU.java @@ -124,21 +124,36 @@ public class VDU extends Component * @param clr the standard color * @return the new brighter color */ + + private double max(double f1,double f2) { return (f1> 3)-1]; + fg = darken(color[((currAttr & COLOR_FG) >> 3)-1]); if((currAttr & COLOR_BG) != 0) - bg = color[((currAttr & COLOR_BG) >> 7)-1].darker(); + bg = darken(darken(color[((currAttr & COLOR_BG) >> 7)-1])); if((currAttr & BOLD) != 0) if(fg.equals(Color.black)) { fg = Color.gray; } else { - fg = fg.brighter(); + fg = brighten(fg); // bg = bg.brighter(); -- make some programs ugly } - if((currAttr & LOW) != 0) { fg=fg.darker(); } + if((currAttr & LOW) != 0) { fg = darken(fg); } if((currAttr & INVERT) != 0) { Color swapc = bg; bg=fg;fg=swapc; } if (sf.inSoftFont(charArray[windowBase + l][c])) {