[cc65] TGI_MODE_... gone

From: Oliver Schmidt <ol.sc1web.de>
Date: 2011-05-02 18:27:18
Hi,

The idea behind the TGI_MODE_... macros was to allow a program to
select a TGI driver in an abstract, target-neutral fashion by just
defining the desired resolution and color depth.

Hower it turned out that _every_ TGI driver implemented so far has a
(even if only slightly) different set of characteristics. So every TGI
driver had to come with its own TGI_MODE_... macro - which certainly
wasn't intended that way.

So today TGI programs trying to be target-independent don't call
  tgi_load(TGI_MODE_...);
but rather call
  tgi_loaddriver(tgi_stddrv);
and try then to accomodate the characteristics of the TGI driver they got.

On the other hand TGI programs bound to a specific TGI driver don't need to call
  tgi_load(TGI_MODE_...);
neither as they can just as well call
  tgi_loaddriver("<drivername>.tgi");
directly.

Therefore I proposed to Uz to remove the whole TGI_MODE... stuff
altogether - which he aggreed to. This includes:
- the relevant .h and .inc files
- the tgi_load() function
- the target-sepcific TGI mode tables

The target-specific global variable tgi_stddrv doesn't refer anymore
to the first entry in the TGI mode table but is just a simple string
(like mouse_stddrv and joy_stddrv). A positive side effect is saving
some bytes of RAM by pulling in only one TGI driver filename into the
executable instead of all TGI driver filenames from the TGI mode table
(especially on the Atari having quite some TGI drivers).

Regards,
Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon May 2 18:27:25 2011

This archive was generated by hypermail 2.1.8 : 2011-05-02 18:27:27 CEST