This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Pbm between DrawText and Colorkey


Pbm between DrawText and Colorkey

Postby jul' » Jul 8, 2002 @ 5:20pm

jul'
pm Member
 
Posts: 15
Joined: May 22, 2002 @ 10:55am
Location: Grenoble


Postby Johan » Jul 8, 2002 @ 5:35pm

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
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby jul' » Jul 8, 2002 @ 5:42pm

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'
jul'
pm Member
 
Posts: 15
Joined: May 22, 2002 @ 10:55am
Location: Grenoble


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron