From: Regis BOSSUT 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: NNTP-Posting-Host: hpac1.isen.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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