Re: [cc65] TGI palettes (was: TGI colors revisited)

From: Ullrich von Bassewitz <>
Date: 2011-05-24 18:44:04
On Tue, May 24, 2011 at 07:18:02AM -0400, Greg King wrote:
> > Which means, I would keep it; but, warn people that it is less useful
> > than it seems.
> Oh no! :-/
> Now, you have confused me totally.  Just what _exactly_ is
> tgi_getcolorcount() supposed to tell a program -- if it doesn't say how
> many colors, at least, can be allocated.

It tells a program that it will never be able to allocate more colors than
what the function returns. The difference to the current behavior is that the
program might not even be able to allocate as much colors, depending on how
tgi_alloccolor is called. 

Assume a monochrome driver, where tgi_getcolorcount returns 2. So the program
knows that, would allocate black and white, accept that the driver might
approximate and use the returned colors. The result might not be perfect, but
will probably be acceptable.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue May 24 18:44:11 2011

This archive was generated by hypermail 2.1.8 : 2011-05-24 18:44:16 CEST