mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Don't generate SDL events on Atlas shutdown
WX may still generate mouse events after calling CVideoMode::Shutdown(), so don't create SDL events triggering assertions. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -963,6 +963,11 @@ SDL_Window* CVideoMode::GetWindow()
|
||||
return m_Window;
|
||||
}
|
||||
|
||||
bool CVideoMode::IsInitialized() const
|
||||
{
|
||||
return m_IsInitialised;
|
||||
}
|
||||
|
||||
void CVideoMode::SetWindowIcon()
|
||||
{
|
||||
// The window icon should be kept outside of art/textures/, or else it will be converted
|
||||
|
||||
@@ -95,6 +95,7 @@ public:
|
||||
int GetBPP() const;
|
||||
|
||||
bool IsVSyncEnabled() const;
|
||||
bool IsInitialized() const;
|
||||
|
||||
int GetDesktopXRes() const;
|
||||
int GetDesktopYRes() const;
|
||||
|
||||
Reference in New Issue
Block a user