[AD] Request: adding textout_ex(), which takes bg color as parameter |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I would like to add a "textout_ex()" function, which takes the bg color
as a parameter rather than reading it from the global "_textmode"
variable.
The reason for doing this is twofold: firstly, it simplifies things
which want to write text with their own background color, independent
of the current user setting (eg. the GUI), and second, it removes any
semblance of state from the text renderer, so we can use it in a
multithreaded environment (which is what I want to do in my GUI).
Currently, it is not possible to use two threads displaying different
dialogs, because one thread may change the background color and then
another thread (which was using a different background color) tries to
write something, and gets the wrong background. The solution is a mutex
around textout(), but that is silly.
Bye for now,
- --
Laurence Withers, lwithers@xxxxxxxxxx
(GnuPG 04A646EA) http://www.lwithers.demon.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9k5UrUdhclgSmRuoRAn0aAJ9LK3tMWmenZzYwTp165+33yjIc/gCghsJJ
RG8jBo7OxSP9lgr7l46e+P8=
=NQ59
-----END PGP SIGNATURE-----