Re: [cc65] tgi_init functionality change request

From: Karri Kaksonen <karri1sipo.fi>
Date: 2004-10-30 20:36:54
Hi,

On Sat, 30 Oct 2004, Ullrich von Bassewitz wrote:
> the C wrapper can be changed to set the page before clearing the screen. Maybe
> the latter is the better idea.

I rather call tgi_setdrawpage from my own code than have it embedded into
some other calls.

> > 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:
> [...]
>
> Not a good idea. The driver should work after calling tgi_init without
> anything else. If this is not possible, we will have to think about changing
> the TGI driver spec to make it possible.

The problem is not with interrupts. It crashed due to tgi_clear in the
C-wrapper of tgi_init.

Lets just leave tgi_init as it is. I don't need to call it at all for
the Lynx. That takes care of all my other questions as well.

In order to fix the crash we need to add a call to tgi_setdrawpage
to tgi_init befor it tries to draw anything.
I would add it to the C-wrapper.

--
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 Sat Oct 30 20:29:53 2004

This archive was generated by hypermail 2.1.8 : 2004-10-30 20:30:02 CEST