delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/09/02/00:16:58

Xref: news-dnh.mv.net comp.os.msdos.djgpp:1872
Path: news-dnh.mv.net!mv!news.NH.Destek.Net!news2.net99.net!news.cais.net!newsfeed.internetmci.com!news.sprintlink.net!in2.uu.net!news.erinet.com!bug.rahul.net!a2i!wilsont.a2i!wilsont
From: Timothy Wilson <wilsont AT rahul DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Graphics in v2.0
Date: 2 Sep 1995 00:32:59 GMT
Organization: a2i network
Lines: 36
Distribution: na
References: <DE242E DOT CII AT jade DOT mv DOT net> <420l92$f04 AT bug DOT rahul DOT net> <427g3j$5n0 AT krel DOT iea DOT com> <DE8wHp DOT M79 AT jade DOT mv DOT net>
Nntp-Posting-Host: bolero.rahul.net
Nntp-Posting-User: wilsont
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

In <DE8wHp DOT M79 AT jade DOT mv DOT net> mat AT ardi DOT com (Mat Hostetter) writes:

>>>>>> "Brainfried" == Brainfried  <unlisted AT email DOT adress> writes:



>    Brainfried> Here is the code for the simple test program I use (It
>    Brainfried> doesn't work), am I doing something wrong?

>The flaw is with the original poster's erroneous claim, not your
>interpretation of it.  You can't simply copy to 0xA0000 and expect it
>to appear on the screen.


Hey, it works, here is the code AGAIN!!


_go32_dpmi_registers regs;
unsigned short dos_sel;


void gfx_mode(char mode)
  {
  dos_sel=_go32_conventional_mem_selector();
  regs.x.ax=mode;
  regs.x.ss=regs.x.sp=0;
  _go32_dpmi_simulate_int(0x10, &regs);
}


This DOES work, I use it DAILY!!!

-- 
Timothy Wilson --- wilsont AT rahul DOT net --- Sillicon Valley 
>Dark Oak Software<-+Entertainment and Applications programming in C
^^^^^^^^^^^^^^^^^^^+->X/Unix, and MS-DOS

- Raw text -


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