www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/30/02:20:11

Xref: news-dnh.mv.net comp.os.msdos.djgpp:1820
Path: news-dnh.mv.net!mv!news.NH.Destek.Net!news2.net99.net!news.cais.net!ringer.cs.utsa.edu!swrinde!howland.reston.ans.net!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: 30 Aug 1995 03:17:54 GMT
Organization: a2i network
Lines: 43
Distribution: na
References: <DE242E DOT CII AT jade DOT mv DOT net>
Nntp-Posting-Host: foxtrot.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 <DE242E DOT CII AT jade DOT mv DOT net> Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> writes:


>On Mon, 28 Aug 1995 tony AT osho DOT mcs DOT csuhayward DOT edu wrote:

>> I apologize if this has been asked before, but I haven't been able to
>> read the newsgroup lately.  I couldn't find much documentation with 
>> the DJGPP V2 beta.  Is there a specific FAQ for it yet?

>As v2.0 is in beta, there isn't much docs except regarding things which 
>has changed *a lot*, like the C library.  There is no FAQ yet, as a beta 
>release typically has most its woes corrected before the final release, 
>so it doesn't make sense to have a FAQ about such problems.


>         In DPMI mode this won't work.  As DJGPP v2.0 will be DPMI-only
>         environment, this means that, after GRX 2.0 arrives, the above
>         method should be used only as last resort.  If you want to write
>         a program which will compile and run unchanged in v2.0, use
>         functions described in <sys/farptr.h> (see chapter 18 below for
>         details).

>The farptr functions are explained in section 18.4, and also in the v2.0 
>libc Info file.



I don't do any of that, for both 1.6 and 2.0 I've used:
char * screen

screen=(char*)0xa0000;

screen[x+y*320]=somecolor;

As long as I set stuff up with a INT 10 call it works fine, no need
to muck with this near/far pointer crapola. *bleh* This is GCC after all, 
not DOS. :)


-- 
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