mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-11 11:32:35 +08:00
[saco] Implement/match CNewPlayerTags::RestoreDeviceObjects()
* Update CNewPlayerTags constructor
This commit is contained in:
parent
bf5db25fea
commit
efbb695cae
@ -4,8 +4,18 @@
|
|||||||
CNewPlayerTags::CNewPlayerTags(IDirect3DDevice9* pDevice)
|
CNewPlayerTags::CNewPlayerTags(IDirect3DDevice9* pDevice)
|
||||||
{
|
{
|
||||||
m_pDevice = pDevice;
|
m_pDevice = pDevice;
|
||||||
field_4 = 0;
|
m_pStates = NULL;
|
||||||
m_pSprite = NULL;
|
m_pSprite = NULL;
|
||||||
|
|
||||||
D3DXCreateSprite(pDevice, &m_pSprite);
|
D3DXCreateSprite(pDevice, &m_pSprite);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CNewPlayerTags::RestoreDeviceObjects()
|
||||||
|
{
|
||||||
|
if(m_pSprite)
|
||||||
|
m_pSprite->OnResetDevice();
|
||||||
|
|
||||||
|
if(!m_pStates)
|
||||||
|
m_pDevice->CreateStateBlock(D3DSBT_ALL, &m_pStates);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -5,10 +5,11 @@ class CNewPlayerTags
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
IDirect3DDevice9* m_pDevice;
|
IDirect3DDevice9* m_pDevice;
|
||||||
int field_4;
|
IDirect3DStateBlock9* m_pStates;
|
||||||
ID3DXSprite* m_pSprite;
|
ID3DXSprite* m_pSprite;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CNewPlayerTags(IDirect3DDevice9* pDevice);
|
CNewPlayerTags(IDirect3DDevice9* pDevice);
|
||||||
|
|
||||||
|
void RestoreDeviceObjects();
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user