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 seems. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de 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