Mercurial > 510Connectbot
changeset 82:d8da9f32074c
vt320 colors add one to indicate color is set rather than default
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 16 Jun 2014 09:55:39 -0700 |
parents | 49bda8001175 |
children | 4ccfde0bc506 |
files | src/org/tn5250j/framework/tn5250/Screen5250.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java Mon Jun 16 09:19:22 2014 -0700 +++ b/src/org/tn5250j/framework/tn5250/Screen5250.java Mon Jun 16 09:55:39 2014 -0700 @@ -3847,8 +3847,8 @@ char at = planes.getCharExtended(p); boolean ia = planes.isAttributePlace(p); if (ch < ' ') ch = ' '; - int bg = vt320color[(int)((co >> 8) & 0x0f)]; - int fg = vt320color[(int)(co & 0x0f)]; + int bg = vt320color[(int)((co >> 8) & 0x0f)] + 1; + int fg = vt320color[(int)(co & 0x0f)] + 1; int ul = (int)(at & EXTENDED_5250_UNDERLINE); int nd = (int)(at & EXTENDED_5250_NON_DSP); int vt_attr = (fg << VDUBuffer.COLOR_FG_SHIFT) + (bg << VDUBuffer.COLOR_BG_SHIFT);