delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/29/12:21:56

From: Regis BOSSUT <bossut AT isen DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GRX20: Changing Pallette
Date: Thu, 29 May 1997 11:39:32 +0200
Organization: IEMN - Dépt ISEN - Acoustique
Lines: 15
Message-ID: <338D4ED4.7AD1@isen.fr>
References: <Pine DOT SGI DOT 3 DOT 95 DOT 970526123815 DOT 18735A-100000 AT geb DOT gfy DOT ku DOT dk>
NNTP-Posting-Host: hpac1.isen.fr
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Thomas Knudsen wrote:

> When using GRX20 in 256 color mode to display a pseudo-colored bitmap
> image, I start by loading a pallette like this:

>   for(i=0; i<256; i++) GrSetColor(i, r[i], g[i], b[i]);

> then I display the image on the screen. However, if I later try to change
> the pallette (to enable some interactive contrast stretching), nothing
> happens.

Isn't there a GrRefreshColors() subroutine available for that purpose ?
I don't have the source code here but it should be the answer...

/Régis

- Raw text -


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