Page 1 of 1

Pbm between DrawText and Colorkey

PostPosted: Jul 8, 2002 @ 5:20pm
by jul'

PostPosted: Jul 8, 2002 @ 5:35pm
by Johan
Hi,

Yep.. When you say "crash" I assume you mean "fail". Basically every blit function tests all parameters and states of the surface so getting GapiDraw to crash now would be an accomplishment. ;)

Basically the color key is used to define transparency in the bitmap. If you do not specify the correct background color (in your case 0xFF00FF) CGapiBitmapFont::CreateFont will not be able to identify any characters in the bitmap and will fail. That's the same reason all subsequent events return GDERR_NOTINITIALIZED.

/Johan

PostPosted: Jul 8, 2002 @ 5:42pm
by jul'
Yes, it did not crash but failed ;-)
I now see where's my error : I had an unique transparent color for all the application. But the transparent color for the fonts I have (currently yours) is Fuschia (FF,00,FF), so when I tried to change it, it failed...

Thanks a lot.


jul'