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 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: <420l92$f04 AT bug DOT rahul DOT net> <427g3j$5n0 AT krel DOT iea DOT com> 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 mat AT ardi DOT com (Mat Hostetter) writes: >>>>>> "Brainfried" == Brainfried 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, ®s); } 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