That code was origionally mmbob's for recreating the font. Im sure you just changed it to the sprite /fmm
my little simple function i made it into /teheCode:void ReCreate(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);
}
}