Hello,
i have Problem the line Reset in LTFX is reset = Black screen
reset shit #1 :
Code:
void cMenu::PostReset(char *font, int size, IDirect3DDevice9* pD3Ddev)
{
if(menuFont == NULL)
{
menuFont = new CD3DFont(font, size,0);
menuFont->InitDeviceObjects(pD3Ddev);
menuFont->RestoreDeviceObjects();
this->FontCreated = true;
}
}
void cMenu::PreReset( void )
{
if(menuFont)
{
menuFont->InvalidateDeviceObjects();
menuFont->DeleteDeviceObjects();
menuFont = NULL;
this->FontCreated = false;
}
}
and in the Base :
Code:
HRESULT WINAPI myReset ( LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
if(menu.FontCreated && menu.firstInit)
{
menu.PreReset( );
}
HRESULT ReturnReset = pReset(pDevice,pPresentationParameters);
if(!menu.FontCreated && menu.firstInit)
{
menu.PostReset( De_text("hu|ƒu",20), 8, pDevice );
}
return ReturnReset;
}
bool mwrited = false;
bool mwritedd = false;
DWORD MsgBox = 0x418625;
void MessageBoxWr(char * msgtxt)
{
__asm
{
add eax,4
push msgtxt
call MsgBox
pop ecx
}
}
Who can help me to fix this ?
