slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] [Patch] slvideo.c


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

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]