[AD] non-static read-only font |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hi!
I am writing an addon library that needs to access the default 8x8 font, no
matter if the user changes `font' to point to his own font (as the docs
about `font' suggest you can do to change the look of the gui). Would it be
possible to add a new variable for this, which is just a copy of `font' and
which it would be officially bad behaviour to change (ie something like the
attached patches)?
Sven
--- src\text.old Tue Jan 25 17:39:08 2000
+++ src\text.c Tue Jan 25 17:42:42 2000
@@ -29,2 +29,3 @@
FONT *font = &base_font;
+FONT *_default_8x8_font = &base_font;
--- include\allegro\aintern.old Tue Jan 25 17:39:40 2000
+++ include\allegro\aintern.h Tue Jan 25 17:42:48 2000
@@ -173,2 +173,3 @@
AL_FUNC(void, _draw_textbox, (char *thetext, int *listsize, int draw, int offset, int wword, int tabsize, int x, int y, int w, int h, int disabled, int fore, int deselect, int disable));
+AL_VAR(FONT *, _default_8x8_font);