Re: [cc65] TGI bitmap fnts revisited

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2011-07-12 23:05:32
On Tue, Jul 12, 2011 at 09:30:06AM -0400, Greg King wrote:
> > Because a) needs some unknown amount of extra memory,
> > b) is probably the way to go.
>
> There is a third (Pascal) way:
>   c) Separately pass in the (sub)string's length.  The kernel clips off
>      the end of the string simply by reducing the claimed length.
>      It clips off the beginning by changing the string-pointer,
>      moving a coördinate, and reducing the claimed length.

You are right. Especially if the driver needs some costly initialization
before starting to draw a character (bitmaps or shifts), this might be better
than b).

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 Jul 12 23:05:52 2011

This archive was generated by hypermail 2.1.8 : 2011-07-12 23:05:55 CEST