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

From: Ullrich von Bassewitz <>
Date: 2011-05-21 17:39:13
On Sun, May 15, 2011 at 06:54:35PM +0200, Oliver Schmidt wrote:
> 2. Have tgi_init() do an internal tgi_alloccolor(TGI_COLOR_WHITE) -
> and for consistency probably tgi_alloccolor(TGI_COLOR_BLACK) too - and
> then the tgi_setcolor(white). Most likely that would mean to introduce
> something like two "standard color handles" sort of similiar to the
> three standard file i/o handles. Apps interested in black&white only
> could use those standard handles and get along without any explicit
> color allocation calls.

The X Window System has a similar solution using two predefined colors named
BlackPixel and WhitePixel that must not be allocated. But I wouldn't go for
that, because when X was written, there were a lot of monochrome graphics
displays without color capabilities. Many of the old 6502 machines are
different in having a monochrome mode where the drawing color can be choosen
from a set of colors. 

So I would 

    - add tgi_setbgcolor
    - and remove tgi_clear and tgi_setcolor from tgi_init

Actually I think the former is already gone, since it allows an application to
switch between text and graphics mode while keeping the grapics content (if
this is possible on the platform).



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat May 21 17:39:25 2011

This archive was generated by hypermail 2.1.8 : 2011-05-21 17:39:28 CEST