comparison src/org/tn5250j/framework/tn5250/Screen5250.java @ 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 1b5887a3bb1c
comparison
equal deleted inserted replaced
81:49bda8001175 82:d8da9f32074c
3845 char ch = planes.getChar(p); 3845 char ch = planes.getChar(p);
3846 char co = planes.getCharColor(p); 3846 char co = planes.getCharColor(p);
3847 char at = planes.getCharExtended(p); 3847 char at = planes.getCharExtended(p);
3848 boolean ia = planes.isAttributePlace(p); 3848 boolean ia = planes.isAttributePlace(p);
3849 if (ch < ' ') ch = ' '; 3849 if (ch < ' ') ch = ' ';
3850 int bg = vt320color[(int)((co >> 8) & 0x0f)]; 3850 int bg = vt320color[(int)((co >> 8) & 0x0f)] + 1;
3851 int fg = vt320color[(int)(co & 0x0f)]; 3851 int fg = vt320color[(int)(co & 0x0f)] + 1;
3852 int ul = (int)(at & EXTENDED_5250_UNDERLINE); 3852 int ul = (int)(at & EXTENDED_5250_UNDERLINE);
3853 int nd = (int)(at & EXTENDED_5250_NON_DSP); 3853 int nd = (int)(at & EXTENDED_5250_NON_DSP);
3854 int vt_attr = (fg << VDUBuffer.COLOR_FG_SHIFT) + (bg << VDUBuffer.COLOR_BG_SHIFT); 3854 int vt_attr = (fg << VDUBuffer.COLOR_FG_SHIFT) + (bg << VDUBuffer.COLOR_BG_SHIFT);
3855 if (ul > 0) vt_attr |= VDUBuffer.UNDERLINE; 3855 if (ul > 0) vt_attr |= VDUBuffer.UNDERLINE;
3856 if (ia || (nd > 0)) vt_attr |= VDUBuffer.INVISIBLE; 3856 if (ia || (nd > 0)) vt_attr |= VDUBuffer.INVISIBLE;