mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-09 11:01:33 +00:00
Fixes the Alt + Tab crash in the fullscreen mode. Refs #4181.
Patch By: Angen Comments By: echotangoecho, Imarok, Stan Reviewed By: vladislavbelov Trac Tickets: #4181 Differential Revision: https://code.wildfiregames.com/D1212 This was SVN commit r21476.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2017 Wildfire Games.
|
||||
/* Copyright (C) 2018 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -401,6 +401,11 @@ bool CVideoMode::ToggleFullscreen()
|
||||
return SetFullscreen(!m_IsFullscreen);
|
||||
}
|
||||
|
||||
bool CVideoMode::IsInFullscreen() const
|
||||
{
|
||||
return m_IsFullscreen;
|
||||
}
|
||||
|
||||
void CVideoMode::UpdatePosition(int x, int y)
|
||||
{
|
||||
if (!m_IsFullscreen)
|
||||
|
||||
Reference in New Issue
Block a user