[cc65] tgi_init functionality change request

From: Karri Kaksonen <karri1sipo.fi>
Date: 2004-10-28 17:56:01
Hi,

I noticed that the tgi_init code will clear the screen and set the palette
at startup. Unfortunately it does not set the draw page before clearing
the screen resulting in wiping out random memory areas in the Lynx.

I would like to change the tgi_init so that it does not set the palette
and it does not clear the screen.

These things should not be done before we have set up the hardware
pointers and the screen interrupts. The interrupts have to be set
up outside the driver. So the recommended workflow maight be:

tgi_load

tgi_install

tgi_init
start interrupts (should be part of tgi_init)

Start using the driver.

The Lynx also has an image on screen at load-time. I don't like the idea
that the screen is forced to black by the driver. Perhaps I would like
a smooth palette fade from the original image to the applications first
screen.

Could these changes be made? To get the old behaviour you need to call:

tgi_setpalette(tgi_getdefaultpalette());
tgi_clear();

after calling tgi_init().
--
Regards,

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 Thu Oct 28 17:48:56 2004

This archive was generated by hypermail 2.1.8 : 2004-10-28 17:49:06 CEST