www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/06/09/12:35:42

Date: Wed, 9 Jun 93 13:05:19 EST
From: gabriel AT vidigal DOT nce DOT ufrj DOT br (Gabriel P. Silva)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: some minor bugs in libpc.a

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019