Jump to content
  • Advertisement
Sign in to follow this  
Maximus Marius

Disappearing text - ID3DXFont interface

This topic is 2227 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My graphic card GF9800

When I have old drivers (year old) all works OK
I updated to new version (301.42) and my application don't works (text is blinking)

I tested with this simple application:
http://www.codesampl...e/dx9_fonts.zip
http://www.codesampl...rc/dx9src_5.htm


What is problem ?


void render( void )
{
g_pd3dDevice->Clear( 0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER,
D3DCOLOR_COLORVALUE(0.0f, 0.0f, 0.0f, 1.0f), 1.0f, 0 );
g_pd3dDevice->BeginScene();
//
// Render some text using our new font...
//
RECT destRect1;
SetRect( &destRect1, 100, 100, 0, 0 );
RECT destRect2;
SetRect( &destRect2, 200, 200, 0, 0 );
RECT destRect3;
SetRect( &destRect3, 300, 300, 0, 0 );
g_pd3dxFont->DrawText( NULL,"This is a line 1.", -1, &destRect1, DT_NOCLIP,
D3DXCOLOR(1.0f, 0.0f, 0.0f, 1.0f) );
g_pd3dxFont->DrawText( NULL,"This is a line 2.", -1, &destRect2, DT_NOCLIP,
D3DXCOLOR(1.0f, 1.0f, 1.0f, 1.0f) );
g_pd3dxFont->DrawText( NULL,"This is a line 3.", -1, &destRect3, DT_NOCLIP,
D3DXCOLOR(0.0f, 0.0f, 1.0f, 1.0f) );
g_pd3dDevice->EndScene();
g_pd3dDevice->Present( NULL, NULL, NULL, NULL );
}


New tests !
This problem exists only on windows XP ,
I tested it on 3 computers with GF9800, driver (301.42) and XP and always text blink.
If I change OS to "7" (reload OS on this same computer) all works OK text don't blink.

My code is correct ? Edited by Maximus Marius

Share this post


Link to post
Share on other sites
Advertisement
Are you asking a question ?

You've told us that you can configure your system to work with the text code and to not work with the text code. If I were you, I'd use one of the configurations that worked. So either downgrade your drivers or upgrade your OS. That's really the simple answer. My recommendation is to upgrade your OS.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!