www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/13/16:03:12

From: "Paul Derbyshire" <pderbysh AT usa DOT net>
Newsgroups: comp.os.msdos.djgpp
References: <3556CE6C DOT 3785FD85 AT mmt DOT upc DOT es>
Subject: Re: grx22 bug???
Lines: 17
Organization: The Chaos Zone
MIME-Version: 1.0
Message-ID: <Oci61.3016$z15.2602534@news21.bellglobal.com>
Date: Wed, 13 May 1998 14:35:26 GMT
NNTP-Posting-Host: 206.172.228.122
NNTP-Posting-Date: Wed, 13 May 1998 10:35:26 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Xavier Prat Recio wrote in message <3556CE6C DOT 3785FD85 AT mmt DOT upc DOT es>...
>255 in my graphics mode, once read become 252!!!

VGA palette registers are six-bit. GRX evidently gets those six from the six
most significant bits of the bytes you feed it. Allegro gets them from the
least significant bits, on the other hand, and if you'd been using it your
color scheme would be repeated four times over.

--
   .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
-()  <  circles, and bark is not smooth, nor does lightning travel in a
   `*'  straight line."    -------------------------------------------------
        -- B. Mandelbrot  |http://www3.sympatico.ca/bob.beland/indexn2f.html
_____________________ ____|________     Paul Derbyshire     pderbysh AT usa DOT net
Programmer & Humanist|ICQ: 10423848|


- Raw text -


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