From: Greg King (gngking_at_erols.com)
Date: 2002-12-13 01:13:46
-----Original Message----- From: Christian Groessler Date: Tuesday, December 10, 2002 07:47 PM > > On 12/11/2002 01:33:39 AM CET, Ullrich von Bassewitz wrote: > > > > Conio supports two color models: color and monochrome. So, a multi-platform > > program will always have to cope with these two models. If the Atari > > supports the monochrome model, it is not necessary to add specific #ifdefs > > for the Atari, because these #ifdefs are already in place for the other > > monochrome machines. If we don't make textcolor() empty, > > we need Atari-specific code. > > > > But, I'm open to other suggestions. If you find a way to make colors work > > in a way that needs no Atari-specific code in an application, and keeps > > functions consistent across platforms, I have no problem with it. > > I've outlined the most obvious solution above [making bgcolor() empty, > > as well], but this must not be the only solution. > > I think I will make the Atari conio monochrome [empty bgcolor()], and > add some platform-specific atari_bgcolor() and atari_textcolor() which > behave like the current Atari bgcolor() and textcolor(). Conio has three models: zero color, one color, and many colors. The PET has "zero" colors -- we can't choose the colors. The Atari has one color -- all text has the same settable color. The 64 has many colors -- text can have a rainbow of colors, at the same time. A programmer might want to alert a user to an important event by "flashing" the screen's colors. So, bgcolor() must not be a "null function." A good solution to the "Atari problem" is to make that function set BOTH values: It would set the background to the argument-value; and, it automatically would choose a brightness-level that gives easily readable text, for that particular color (light text over a dark screen, and dark text over a light background). ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2002-12-13 01:16:08 CET