Re: [cc65] TGI preview

From: Fatih AygŁn <cyco1301yahoo.com>
Date: 2009-11-13 09:10:46
Hi,


Ullrich von Bassewitz wrote:
> I will change tgi_load_vectorfont to return the new error code so this will be

> easier to detect. And the library _is_ currently a lot bigger than necessary.
> It can be optimized for size when it works.

Turns out that I was reusing a makefile intended to to test the 2-page modes
which reserved more than twice the amount of memory than necessary. I can 
load 2 fonts at a time now and I'm only ~1K short now.

> Since the three fonts aren't used together, you can also change the code to
> load scri.tch for Screen0(), litt.tch for all but the last screen and goth.tch
> for Screen9(). Fonts can be free'd using tgi_free_vectorfont.

Yes, I figured it out :) It seems that tgi_load_vectorfont doesn't clear the tgi_error
status even if it succeeds. That apart, unloading litt.tch and scri.tch and loading 
goth.tch before screen9 did the trick. Everything works fine now :)

Btw, me and my brother (who's not into 6502 at all) were using the Borland stuff
back in the days. He immediately recognized the fonts and was motivated enough
to port a mandelbrodt program he wrote for some cell phone to cc65, without knowing 
anything about 6502. It works but it needs a little more work, I'll share it when it's done.

This is one of the finest examples of what I call "technology recycling", stuff like "the
snake game" being the most popular game again during the early 2000s :)

Regards,
Fatih.

ps: Why so low in 2007? :)


      
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Nov 13 09:11:00 2009

This archive was generated by hypermail 2.1.8 : 2009-11-13 09:11:02 CET