Re: [cc65] TGI mode switch without tgi_clear()

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-01-26 17:45:11
Hi!

On Sun, Jan 24, 2010 at 04:33:02PM +0100, Oliver Schmidt wrote:
> So at this point my actual proposal is to _not_ have an additional
> switch function whatsoever but have tgi_init() _not_ call tgi_clear().
> That would allow to switch between text and graphics mode using
> tgi_init() and tgi_done().

Ok, I think that approach has no problems and increases flexibility. It is
also true for the C64 that the contents of the graphics screen are distinct
from that of the text screen, so it should be possible to switch back and
forth without loosing the contents, provided that the automatic tgi_clear is
removed.

> Another option might be to add a parameter to tgi_init() controlling
> the call of tgi_clear().

That's not really worth it. Applications that want the screen cleared can
simply call tgi_clear which costs just three additional bytes for the call.

> What are your opinions?

I will remove the call to tgi_clear within tgi_init.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jan 26 17:45:15 2010

This archive was generated by hypermail 2.1.8 : 2010-01-26 17:45:17 CET