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

From: Karri Kaksonen <karri1sipo.fi>
Date: 2011-05-11 18:15:29
On 05/11/2011 05:49 PM, Daniel Serpell wrote:
>
> Problem is that there is no simple way to go from R,G,B to
> a palette color in many drivers (ie, c64 and atari), so you
> put a lot of code in the driver and slow down the application.
>
> Using the TGI_COLOR_* macros you can map the value
> of the macro directly to the palette color, using char, int or
> long depending on the platform.
>
> In Atari, you could define TGI_COLOR_BLUE to 148,
> TGI_COLOR to 34, etc.
>
>      Daniel.

I cannot find any reason to change the way the TGI driver works today. 
It is almost perfect :)

--
Karri

----------------------------------------------------------------------
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 May 11 18:15:40 2011

This archive was generated by hypermail 2.1.8 : 2011-05-11 18:15:42 CEST