delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/23/18:01:33

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: SVGA
Date: Sun, 23 Aug 1998 18:27:41 -0300
Organization: NBTel Internet
Lines: 31
Message-ID: <35E0894D.8AB22DEE@unb.ca>
References: <6rprfg$n1q$1 AT hiisi DOT inet DOT fi>
NNTP-Posting-Host: fctnts10c07.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Razzloss wrote:

> I'd like to know how to switch the screen to VESA mode 0x101; or any other
> VESA mode. I've tried about 3000 times, but i can't so i need help. I'm new
> with DJGPP and DPMI. With BC45 can do this but not with DJGPP. So help me
> please. DJGPP version is 2.something. Please send a example code how to do
> that. and is drawing on the screen some way different with DJGPP than BC45.

#include<dpmi.h>

  __dpmi_regs Regs;

  Regs.x.ax = 0x4F02;
  Regs.x.bx = 0x101;
  __dpmi_int(0x10, &Regs);


    To write to the screen, you have several choices, I have decided (for my
graphix library) to use selectors because they seem a little more 'elegant' and
they are faster/safer in many cases.  There are examples of how to use
selectors to write to graphics ram in the FAQ, just search for 'selector' a
couple of times.
--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca




- Raw text -


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