| 
  D3DXIMAGE_INFO d3dxImageInfo; 
 SafeRelease(g_pTexture);  D3DXCreateTextureFromFileEx( g_pD3DDevice,                                  lpBkFilename,                                  150, // I had to set width manually. D3DPOOL_DEFAULT works for textures but causes problems for D3DXSPRITE.                                  256, // I had to set height manually. D3DPOOL_DEFAULT works for textures but causes problems for D3DXSPRITE.                                  1,   // Don't create mip-maps when you plan on using D3DXSPRITE. It throws off the pixel math for sprite animation.                                  D3DPOOL_DEFAULT,                                  D3DFMT_UNKNOWN,                                  D3DPOOL_DEFAULT,                                  D3DX_DEFAULT,                                  D3DX_DEFAULT,                                  D3DCOLOR_COLORVALUE(1.0f,1.0f,1.0f,1.0f),                                  &d3dxImageInfo,                                  NULL,                                  &pTexture ); 
 g_pD3DDevice->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR);  g_pD3DDevice->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR);  |