Lol, theres actually a TUT to fix gellins base from disappearing.
Menu Dissapearing.
Use The Search Button mmbob release Some Code Recreate The font
Credits to mmbob.
Code:
void ReFont(LPDIRECT3DDEVICE9 pDevice)
{
if (g_pDevice != pDevice)
{
g_pDevice = pDevice;
try
{
if (pFont != 0)
pFont->Release();
} catch (...) {}
pFont = 0;
D3DXCreateFont(pDevice, 12, 0, FW_BOLD, 1, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &pFont);
}
}
Can Help Me On How To Change It Heres My Code -
void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
{
if( !Base.bSet.bInit )
{
D3DXCreateFont(pDevice, 15, 0, FW_BOLD, 1, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &Directx.pFont);
Base.bSet.bInit = true;
}
if( Directx.pFont == NULL )
Directx.pFont->OnLostDevice();
else
{
Directx.DrawString(10, 22, D3DCOLOR_ARGB(255, 255, 0, 0), Directx.pFont, "MPGH.NET");
Menu.RenderMenu();
}
void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
{
if( !Base.bSet.bInit )
{
D3DXCreateFont(pDevice, 15, 0, FW_BOLD, 1, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &Directx.pFont);
Base.bSet.bInit = true;
}
if( Directx.pFont == NULL )
Directx.pFont->OnLostDevice();
else
{
Directx.DrawString(10, 22, D3DCOLOR_ARGB(255, 255, 0, 0), Directx.pFont, "MPGH.NET");
Menu.RenderMenu();
}
^ It's alright dude i forgot to mention i fixed it by using mmbob's method already.
Thanks for taking your time and helping though.
/Request Close.
Thanks for taking your time and helping though.
/Request Close.
This thread is closed for replies.


