From: "Duncan Coutts" Newsgroups: comp.os.msdos.djgpp Subject: Re: Nearptr putpixel method? Date: Sat, 11 Sep 1999 17:24:20 +0100 Organization: UUNET WorldCom server (post doesn't reflect views of UUNET WorldCom Lines: 16 Message-ID: <7re7pl$dhq$1@lure.pipex.net> References: <199908242311 DOT TAA09745 AT delorie DOT com> <7q0kfa$rot$1 AT news DOT adamastor DOT ac DOT za> <7q19jj$ajq$1 AT news DOT adamastor DOT ac DOT za> <7qcucs$78c$1 AT solomon DOT cs DOT rose-hulman DOT edu> NNTP-Posting-Host: userl716.uk.uudial.com X-Trace: lure.pipex.net 937075317 13882 193.149.76.21 (11 Sep 1999 18:41:57 GMT) X-Complaints-To: abuse AT uk DOT uu DOT net NNTP-Posting-Date: 11 Sep 1999 18:41:57 GMT X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >No, the nearptr hack is not more convenient. It brings with it general >protection faults, page faults, and other things that, if you use nearptr, >are your fault, up to and including data loss. So what is our considered opinion on the best way to write pixels to the screen? For example when using A000 or Vesa LFB. I do it by allocating selectors and using farptr. This method maintains memory protection (one stray pixel causes an exception) and is still quite effecient. It is true that it is not so convenient from a notation point of view, as you can't use normal pointers. How do most people do this? What does Allegro do?