Re: [cc65] TGI preview

From: Fatih Aygün <cyco1301yahoo.com>
Date: 2009-11-15 14:50:16
silverdr@wfmh.org.pl wrote:


> I haven't checked the sources/docs on that so please have mercy if it's already 
> there or something but I was wondering how difficult or easy would it be to have 
> the "reversed" version of the GI. I mean one where clearing would fill the 
> screen with ones instead of zeros, and every drawing would clear the bits out by 
> setting them to zeros.

You can easily achieve that with:

tgi_setcolor(1);
tgi_bar(0, 0, tgi_getmaxx(), tgi_getmaxy());
tgi_setcolor(0);
draw_something();

You can of course use other colors with the drivers that support more colors.

Regards,
Fatih.


      
----------------------------------------------------------------------
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 Nov 15 14:50:21 2009

This archive was generated by hypermail 2.1.8 : 2009-11-15 14:50:24 CET