mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement CDXUTDialogResourceManager::OnResetDevice()
This commit is contained in:
parent
422163126b
commit
31f6c23496
@ -19,6 +19,27 @@ CDXUTDialogResourceManager::CDXUTDialogResourceManager()
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
HRESULT CDXUTDialogResourceManager::OnResetDevice()
|
||||
{
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
for( int i=0; i < m_FontCache.GetSize(); i++ )
|
||||
{
|
||||
DXUTFontNode* pFontNode = m_FontCache.GetAt( i );
|
||||
|
||||
if( pFontNode->pFont )
|
||||
pFontNode->pFont->OnResetDevice();
|
||||
}
|
||||
|
||||
if( m_pSprite )
|
||||
m_pSprite->OnResetDevice();
|
||||
|
||||
m_pd3dDevice->CreateStateBlock( D3DSBT_ALL, &m_pStateBlock );
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
void DXUTBlendColor::Init( D3DCOLOR defaultColor, D3DCOLOR disabledColor, D3DCOLOR hiddenColor )
|
||||
{
|
||||
|
@ -63,6 +63,8 @@ class CDXUTDialogResourceManager
|
||||
public:
|
||||
CDXUTDialogResourceManager();
|
||||
|
||||
HRESULT OnResetDevice();
|
||||
|
||||
// Shared between all dialogs
|
||||
IDirect3DStateBlock9* m_pStateBlock;
|
||||
ID3DXSprite* m_pSprite; // Sprite used for drawing
|
||||
|
Loading…
x
Reference in New Issue
Block a user