[slang-users] [Patch] slvideo.c
Gisle Vanem
giva at bgnett.no
Mon Oct 17 16:11:09 EDT 2005
A little patch for djgpp is needed in slvideo.c. I haven't
checked the other DOS compilers. Is OpenWatcom on
DOS still possible?
--- orig/slvideo.c 2005-10-17 05:00:18.000000000 +0200
+++ ./slvideo.c 2005-10-17 21:22:08.000000000 +0200
@@ -818,18 +818,16 @@
static void
write_attributes (SLsmg_Char_Type *src, unsigned int count)
{
- register unsigned short pair;
unsigned int n;
/* write into a character/attribute pair */
n = Cursor_Col;
while (count)
{
- pair = SLSMG_CHAR_TO_USHORT(*src);/* character/color pair */
- src++;
- SLtt_reverse_video (pair >> 8); /* color change */
- ScreenPutChar ((int)pair & 0xFF, Attribute_Byte, n, Cursor_Row);
+ SLtt_reverse_video (src->color); /* color change */
+ ScreenPutChar (src->wchars[0] & 0xFF, Attribute_Byte, n, Cursor_Row);
n++;
+ src++;
count--;
}
}
----------------------
--gv
More information about the slang-users-l
mailing list