Recreate all of your DirectX resources.
what do i do to fix my menu it keeps going away
Recreate all of your DirectX resources.
Sid (03-02-2011)
If u menu do not show more then 1 game use this:
Code:LPDIRECT3DDEVICE9 g_pDevice = 0; void refont( LPDIRECT3DDEVICE9 pDevice) { if (g_pDevice != pDevice) { g_pDevice = pDevice; try { if (Directx.pFont != 0) Directx.pFont->Release(); } catch (...) {} Directx.pFont = 0; D3DXCreateFont(pDevice, 15, 0, 350, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &Directx.pFont ); } if (g_pDevice != pDevice) { g_pDevice = pDevice; try { if (Directx.pFont != 0) Directx.pFont->Release(); } catch (...) {} Directx.pFont2 = 0; D3DXCreateFont(pDevice, 18, 0, 700, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial Black", &Directx.pFont ); } }
Sid (03-02-2011)
Who's base you using :/
No I do not make game hacks anymore, please stop asking.
Sid (03-02-2011)
where is ur menu going to?
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
Sid (03-02-2011)
You have to release your Font.
There are many ways, with a function, or do it with a Getsync Call.
Or just with a Function:Code:If(GetAsyncKeyState(VK_NUMPAD1)&1){ //DRAW FONT HERE }
Code:if( D3D.pFont == NULL ){ D3DXCreateFont(pDevice, 14, 0, FW_BOLD, 1, FALSE,DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, L"Arial", &D3D.pFont); }else{ if (g_pDevice != pDevice) { g_pDevice = pDevice; try { if (D3D.pFont != 0) D3D.pFont->Release(); } catch (...) {} D3D.pFont = 0; D3DXCreateFont(pDevice, 14, 0, FW_BOLD, 1, FALSE,DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, L"Arial", &D3D.pFont); }
Thanks Cosmos
Sid (03-02-2011)
Sid (03-02-2011)
Sid (03-02-2011)
I will thx anyone exept op's post in this thread