delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/07/21/12:36:34

Date: Sun, 21 Jul 1996 19:32:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: djgpp-workers AT delorie DOT com
Subject: conio patch
Message-Id: <Pine.SUN.3.91.960721192825.6902B-100000@is>
Mime-Version: 1.0

It is not right IMHO that `_set_screen_lines' has a side effect of turning
on the bright background colors.  The code is mine; I pulled it off some
program I wrote and neglected to take those fragments out.  Here are the
necessary changes: 

*** libc/pc_hw/co80/conio.c~1	Thu Feb 22 03:35:14 1996
--- libc/pc_hw/co80/conio.c	Sun Jul 21 17:58:22 1996
***************
*** 789,799 ****
    regs.h.ah = 0x11;
    regs.h.al = font & 0xff;
    __dpmi_int(0x10, &regs);
- 
-   /* Enable intensity bit.  */
-   regs.h.bl = 0;
-   regs.x.ax = 0x1003;
-   __dpmi_int(0x10, &regs);
  }
  
  /* Stretch a 8x8 font to the 8x10 character box.  This is required to
--- 789,794 ----
***************
*** 890,898 ****
  
    /* Load our 8x10 font and enable intensity bit.  */
    load_8x10_font();
-   regs.h.bl = 0;
-   regs.x.ax = 0x1003;
-   __dpmi_int(0x10, &regs);
  }
  
  /* Switch to screen lines given by NLINES.  */
--- 885,890 ----
***************
*** 916,926 ****
                regs.h.bl = 0;
                regs.h.ah = 0x11;
                regs.h.al = (adapter_type > 1 ? 0x14 : 0x11);
-               __dpmi_int(0x10, &regs);
- 
-               /* Enable intensity bit.  */
-               regs.h.bl = 0;
-               regs.x.ax = 0x1003;
                __dpmi_int(0x10, &regs);
              }
  
--- 908,913 ----

- Raw text -


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