Mail Archives: djgpp/1993/06/09/12:35:42
DJ,
I've found two minor bugs in libpc.a:
1) If you choose a background color greater then 7, it blinks. Borland
C simple ignores it, masking the upper bit.
2) When you create a window, the cursor ins't in the upper left corner.
The differences must be applied to gppconio. I've tested the
modifications with version 1.09, so it is needed to verify if those problems
renains in the new 1.10 version.
Gabriel P. Silva
NCE/UFRJ
Rio de Janeiro - Brazil
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*** gppconio.orig Fri Aug 14 23:22:50 1992
--- gppconio.c Wed Jun 09 09:25:14 1993
***************
*** 96,100 ****
{
ScreenAttrib &= 0x0f;
! txinfo.attribute=(ScreenAttrib |= ((color & 0x0f) << 4));
}
--- 96,100 ----
{
ScreenAttrib &= 0x0f;
! txinfo.attribute=(ScreenAttrib |= ((color & 0x07) << 4)); /* Force background color < 8 */
}
***************
*** 256,259 ****
--- 256,261 ----
txinfo.winright = right;
txinfo.winbottom = bottom;
+ ScreenSetCursor(txinfo.wintop-1, txinfo.winleft-1); /* goto first position */
+ /* of window */
}
- Raw text -