Sign in to follow this  
Maximus Marius

Disappearing text - ID3DXFont interface

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:

What is problem ?

void render( void )
D3DCOLOR_COLORVALUE(0.0f, 0.0f, 0.0f, 1.0f), 1.0f, 0 );
// 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->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.

[b]My code is correct ? [/b] Edited by Maximus Marius

Share this post

Link to post
Share on other sites
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this