Help with gellins base!

Posts 1–13 of 13 · Page 1 of 1
Help with gellins base!
Im having a problems with the text isn't comming back after one game..

The background square is there but not the text..
Yes try that it should work.
It still wont work i think im doing something wrong:

Code:
	if( Directx.pFont == NULL ){
		Directx.pFont->OnLostDevice();
		Directx.pFont->OnResetDevice();

	}else
	{
		Directx.DrawString(10, 22, D3DCOLOR_ARGB(255, 255, 255, 0), Directx.pFont, "Iopop9 MagicHack v.2");
		Menu.RenderMenu();
	}



PS. yes i have created a pFont
Quote Originally Posted by Mr.Magicman View Post
It still wont work i think im doing something wrong:

Code:
	if( Directx.pFont == NULL ){
		Directx.pFont->OnLostDevice();
		Directx.pFont->OnResetDevice();

	}else
	{
		Directx.DrawString(10, 22, D3DCOLOR_ARGB(255, 255, 255, 0), Directx.pFont, "Iopop9 MagicHack v.2");
		Menu.RenderMenu();
	}



PS. yes i have created a pFont
in pDevice->OnDeviceLost() do Directx.pFont->OnLostDevice();
in pDevice->OnResetDevice() do Directx.pFont->OnResetDevice();

As in hook those two functions and call their pFont's equivelents before returning
recreate your font after each game
Keep creating the font, might make the game lag though.
mine creates the font every frame, which caused the game to lag
Quote Originally Posted by scimmyboy View Post
mine creates the font every frame, which caused the game to lag
use Sleep(600000) to delay it 10 minutes each time. That should fix it.
notice how i said that in past tense
Quote Originally Posted by scimmyboy View Post
notice how i said that in past tense
/fart

I didn't notice
forgive me best buddy?
i have fixed it thanks to mattypatty and it dont lag xD yayyaay
Sharing the solution would be nice.
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us