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

From: Ullrich von Bassewitz <>
Date: 2011-05-23 17:12:36
On Sun, May 22, 2011 at 11:36:06PM +0200, Oliver Schmidt wrote:
> >> - tgi_getcolorcount should be described as returning the number of
> >> unique colors that can be successfully allocated. As far as I see the
> >> implementation stays as-is for all drivers.
> > But how does that help? A programmer can still not know if a call to
> > tgi_alloccolor will fail, even if less colors are allocated.
> I see. So tgi_getcolorcount is to be removed too?

It may be useful for a program to determine for example if the driver is a
monochrome driver, and that it doesn't make sense to use more colors. But just
because tgi_getcolorcount returns 4 doesn't actually mean that a program can
allocate 4 colors. 

Which means, I would keep it but warn people that it is less useful than it



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon May 23 17:12:45 2011

This archive was generated by hypermail 2.1.8 : 2011-05-23 17:12:48 CEST