Re: [cc65] Re: Atari TGI drivers, finally

From: Oliver Schmidt <ol.sc1web.de>
Date: 2009-10-28 12:43:37
Hi Jonathan,

>> > For a 2-color driver the only valid values are 0 and 1. It was a very
>
> Not neccesarily. On my system, the default palette is set as:
>
>  8-colour  4-colour  2-colour
> 0 black     black     black
> 1 red       red       white
> 2 green     yellow    black
> 3 yellow    white     white
> 4 blue      black     black
> 5 magenta   red       white
> 6 cyan      yellow    black
> 7 white     white     white
>
> Consequently, colour 7 is used to always select white regardless of
> the colour depth (assuming the pallette hasn't been changed).

The discussion in this thread is primarily about palette indexes (and
not palette entry values): A monochrome driver tells the TGI kernel a
color number of 2. Then the TGI kernel will let you only use 0 and 1
as parameters to tgi_setcolor(). So any macro to be used as parameter
to tgi_setcolor() needs to have the value 0 or 1.

Best, Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Oct 28 12:43:54 2009

This archive was generated by hypermail 2.1.8 : 2009-10-28 12:43:56 CET