- implemented 'i_soundinbackground' to continue playing sounds and music while in the background.
- OpenGL rendering continues now even when losing focus while in windowed mode.
This commit is contained in:
parent
d10304ea4e
commit
000037dbf6
4 changed files with 7 additions and 4 deletions
|
|
@ -165,6 +165,7 @@ BOOL AppActive = TRUE;
|
|||
int SessionState = 0;
|
||||
int BlockMouseMove;
|
||||
|
||||
CVAR (Bool, i_soundinbackground, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||
CVAR (Bool, k_allowfullscreentoggle, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||
|
||||
CUSTOM_CVAR(Bool, norawinput, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOINITCALL)
|
||||
|
|
@ -567,7 +568,7 @@ LRESULT CALLBACK WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
{
|
||||
SetPriorityClass (GetCurrentProcess (), IDLE_PRIORITY_CLASS);
|
||||
}
|
||||
S_SetSoundPaused (wParam);
|
||||
S_SetSoundPaused ((!!i_soundinbackground) || wParam);
|
||||
break;
|
||||
|
||||
case WM_WTSSESSION_CHANGE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue