reset fonts problem

Posts 1–3 of 3 · Page 1 of 1
reset fonts problem
i have a problem with my d3d menu fonts, they do not show up when i join a room...
i tried to reset the fonts:

Code:
int iReturnValue = pReset(pDevice, pPresentationParameters);

if(shkronjatedumdumit)
shkronjatedumdumit->OnResetDevice();

return iReturnValue;
}
but still the fonts do not show up.... any solution? gonna give credits
lol, i cried..

Code:
int iReturnValue = pReset(pDevice, pPresentationParameters);

if(shkronjatedumdumit != 0)
{
shkronjatedumdumit->Release();
shkronjatedumdumit = 0;
}

return iReturnValue;
}
Or reseting with hooking Reset
Code:
static LPDIRECT3DDEVICE9 g_pDevice = 0;
If( pDevice != g_pDevice) // If Device change Reset required and Then It will not be the same
{
g_pDevice = pDevice;// make them the same
if(shkronjatedumdumit != 0)// If it is null it not reset
{
shkronjatedumdumit->Release();// Release it.. no memory Leaks now
shkronjatedumdumit = 0;//Make it Null as it is a pointer
}

//Recreate here and go on

}
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us