Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Weird Problem with dbText()

Author
Message
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 14th Dec 2008 03:18
This explains itself. I call dbCLS(0) at the beginning of the loop.

Attachments

Login to view attachments
Carlos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 14th Dec 2008 03:57
You don't need to use dbCLS to erase the screen.

You can just write

while(LoopGDK())
{
//other codes...
dbText(x,y,string);
//other codes...
dbSync();
}

The text should be drawn correctly.
Yoda Master
16
Years of Service
User Offline
Joined: 23rd Feb 2008
Location: Genova
Posted: 14th Dec 2008 15:01
@carlos: Background ALWAYS need to be cleared in order to get a correct view of the drawn text unless you create a 3D object.

@Zuka:

Quote: "

This explains itself. I call dbCLS(0) at the beginning of the loop.

"


I don't think that this explains itself. Calling dbCLS doesn't mean that you correctly call dbText. Maybe you are drawing black text on black screen.

Fear leads to anger
Anger leads to hate
Hate leads to suffering
pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 14th Dec 2008 16:31
try

Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 16th Dec 2008 00:14
My guess is that you are drawing several strings in one place. Are you sure you don't have some other "dbText" call in the program that overlap those coords?


Tux is my guildmaster.
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 17th Dec 2008 02:45
No. I've tried moving it too. And I'm drawing WHITE text on a BLACK screen.

Login to post a reply

Server time is: 2024-09-30 13:18:08
Your offset time is: 2024-09-30 13:18:08