Re: [cc65] tgi_init functionality change request

From: Karri Kaksonen <karri1sipo.fi>
Date: 2004-11-07 15:30:17
On Sat, 6 Nov 2004, Ullrich von Bassewitz wrote:
> On Thu, Nov 04, 2004 at 09:22:54AM -0500, Greg King wrote:
> > 1. We might want to switch back-and-forth between graphics and text modes
> > without loosing what we had put on both screens (a drawing program might
> > show a menu and a picture).
>
> Ok, that sounds reasonable. But then, what should tgi_init do? Setting the
> palette to default will also change the appearance of the displayed screen.

Therefore you should not set the palette to default.

The "default" palette could mean that the hardware will use these values
in case no initialisation is done.

When you power up the Lynx it will read in a title-sprite that consists of
a 16 color palette followed by a sprite that contains a pointer to a
bitmap, x and y coordinates where to display it and scaling values sx and
sy.

16 colors is such a small palette that I always need to create a palette
of my own. Setting the "default" values during tgi_init adds unnecessary
noise to my applications.

Unfortunately the Lynx will always blank the screen after the title sprite
is displayed. So it does not really matter if tgi_init wants to clear a
screen and set the default palette as the user won't notice it.

I tried to do smooth transitions between applications and it works on all
occations except at startup.

To cut the story short... Lynx programming just requires an added call to
tgi_setdrawpage. You can set the default palette and clear the screen.
--
Cheers,

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 Sun Nov 7 15:23:19 2004

This archive was generated by hypermail 2.1.8 : 2004-11-07 15:23:29 CET