Re: [cc65] Atari TGI drivers, finally

From: Oliver Schmidt <ol.sc1web.de>
Date: 2009-10-25 19:00:29
Hi Fatih,

> That's the exact problem I'm trying to describe. It works for c64 because
> COLOR_WHITE happens to be defined as 1. For atari it's defined as 0x0E
> and setcolor wrapper prevents me from doing any reverse mapping. Either
> the definition should change, which would break conio color routines, or
> the wrapper should pass the setcolor parameter intact. Or maybe we should
> define a new set of constants like TGI_COLOR_XXX?

As I already tried to point out for a driver with two palette entries
COLOR_WHITE should be 1, not 0x0E. If there are different drivers with
different ideas of white (and maybe conio with yet another idea of
white) then you need different white macros.

It's hard to come up with a universal yet useful macro naming scheme.
However the name clash between conio and tgi in general is unnecessary
(as you pointed out above), so your proposal of TGI_COLOR_xxx makes
sense to me!

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 Sun Oct 25 19:00:37 2009

This archive was generated by hypermail 2.1.8 : 2009-10-25 19:00:39 CET