Sign in to follow this  

Disappearing text - ID3DXFont interface

This topic is 1981 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:
[url="http://www.codesampler.com/source/dx9_fonts.zip"]http://www.codesampl...e/dx9_fonts.zip[/url]
[url="http://www.codesampler.com/dx9src/dx9src_5.htm"]http://www.codesampl...rc/dx9src_5.htm[/url]


What is problem ?

[CODE]
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 );
}
[/CODE]

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

This topic is 1981 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.

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