mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
frog
This commit is contained in:
parent
9b272fb3f6
commit
3d8a9041e8
1 changed files with 7 additions and 6 deletions
|
@ -262,12 +262,13 @@ namespace dxvk::wsi {
|
|||
|
||||
|
||||
bool Win32WsiDriver::isOccluded(HWND hWindow) {
|
||||
if (::GetForegroundWindow() == hWindow)
|
||||
{
|
||||
m_lastForegroundTimestamp = GetTickCount64();
|
||||
return false;
|
||||
}
|
||||
return m_lastForegroundTimestamp && GetTickCount64() - m_lastForegroundTimestamp > 100;
|
||||
return false;
|
||||
// if (::GetForegroundWindow() == hWindow)
|
||||
// {
|
||||
// m_lastForegroundTimestamp = GetTickCount64();
|
||||
// return false;
|
||||
// }
|
||||
// return m_lastForegroundTimestamp && GetTickCount64() - m_lastForegroundTimestamp > 100;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue