Allow Core_WaitInactive() when already inactive.

It's being called unconditionally now, it was changed in the other one, so
I guess it needs changing here.
This commit is contained in:
Unknown W. Brackets 2013-06-30 22:47:39 -07:00
parent 6ce949a743
commit e6bb49fb0d

View file

@ -88,7 +88,8 @@ void Core_WaitInactive()
void Core_WaitInactive(int milliseconds) void Core_WaitInactive(int milliseconds)
{ {
m_hInactiveEvent.wait_for(m_hInactiveMutex, milliseconds); if (Core_IsActive())
m_hInactiveEvent.wait_for(m_hInactiveMutex, milliseconds);
} }
void UpdateScreenScale() { void UpdateScreenScale() {