www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/05/04:26:47

Date: Fri, 5 Apr 1996 11:09:06 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Keith Alan Kile <kak7c AT sparc20-1 DOT unixlab DOT virginia DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: Graphics Mode Switching
In-Reply-To: <Pine.SUN.3.90.960404053259.16526A-100000@sparc20-1.unixlab.Virginia.EDU>
Message-Id: <Pine.SUN.3.91.960405110702.20066N-100000@is>
Mime-Version: 1.0

On Thu, 4 Apr 1996, Keith Alan Kile wrote:

> 	What is the recommended way to change video modes using djgpp 
> v2.x?  I have tried using the BIOS video interupt 0x10 through the 
> library function _go32_dpmi_simulate_int (...) and the compiled program 
> would hang or cause a general protection exception in a DOS-box under 
> Win95.  Is this the only method currently available under djgpp to switch 

Did you remember to zero-out the unused fields of the registers' 
structure you pass to _go32_dpmi_simulate_int()?  The fields you should 
zero out are SS, SP and FLAGS.  Better still, use __dpmi_int library 
function which does this for you.

- Raw text -


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