[AD] text_mode and Windows DLL

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hello Everyone,

I'm new here so if I am asking something inappropriate please tell me and I'll go away
as quietly as possible...

I wrote the AllegTTF library (a truetype font loader) and some people who use Allegro and MSVC have complained that AllegTTF won't compile.

The problem seems to be that AllegTTF needs to be able to find out the _text_mode variable before it can try and render the text string.

I see two possible solutions here:

1) export (or whatever that means) the _text_mode variable in the DLL

2) Change the text_mode function to return and int and return the old _text_mode so I can call text_mode twice to find out whether or not to draw the background behind the text.

Thank you,

Doug Eleveld


 


--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/