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:
vladislavbelov
2018-03-09 22:23:03 +00:00
parent 2f763f1d87
commit 0e710d716d
3 changed files with 18 additions and 7 deletions
+6 -1
View File
@@ -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)