Previous 15994 Revisions Next

r4528 Monday 20th April, 2009 at 13:09:30 UTC by Robbbert
[KAYPRO] WIP - fixed mistake in Underline attribute
[src/mess/video]kaypro.c

src/mess/video/kaypro.c
r4527r4528
140140   d3 Underline
141141   d2 blinking (at unknown rate)
142142   d1 low intensity
143   d0 reverse video */
143   d0 reverse video
144144
145   Not sure how the attributes interact, for example does an underline blink? */
145146
147
146148MC6845_UPDATE_ROW( kaypro2x_update_row )
147149{
148150   UINT16  *p = BITMAP_ADDR16(bitmap, y, 0);
r4527r4528
190192            inv ^= mc6845_cursor[ra];
191193
192194      /* get pattern of pixels for that character scanline */
193      gfx = FNT[(chr<<4) | ra ];
195      if ((ra == 15) && (attr & 8))   /* underline */
196         gfx = 0xff;
197      else
198         gfx = FNT[(chr<<4) | ra ];
194199
195200      /* Display a scanline of a character (8 pixels) */
196201      *p = ( gfx & 0x80 ) ? fg : bg; p++;
r4527r4528
200205      *p = ( gfx & 0x08 ) ? fg : bg; p++;
201206      *p = ( gfx & 0x04 ) ? fg : bg; p++;
202207      *p = ( gfx & 0x02 ) ? fg : bg; p++;
203
204      /* underline */
205      if (attr & 8)
206         *p = fg;
207      else
208         *p = ( gfx & 0x01 ) ? fg : bg;
209
210      p++;
208      *p = ( gfx & 0x01 ) ? fg : bg; p++;
211209   }
212210}
213211

Previous 15994 Revisions Next


© 1998-2018 The MESS Team