mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
- bugfix: Multiplayer games can now run in fullscreen mode! Game will not pause anymore and ALT + TAB also works.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2186 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -387,11 +387,11 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP
|
|||||||
break;
|
break;
|
||||||
case FALSE: // We are suspending direct draw
|
case FALSE: // We are suspending direct draw
|
||||||
|
|
||||||
if (iScreenMode == 0)
|
//if (iScreenMode == 0)
|
||||||
{
|
{
|
||||||
#ifdef JA2
|
#ifdef JA2
|
||||||
// pause the JA2 Global clock
|
// pause the JA2 Global clock
|
||||||
PauseTime( TRUE );
|
//PauseTime( TRUE );
|
||||||
SuspendVideoManager();
|
SuspendVideoManager();
|
||||||
#else
|
#else
|
||||||
#ifndef UTIL
|
#ifndef UTIL
|
||||||
@@ -406,7 +406,7 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP
|
|||||||
MoveTimer(TIMER_SUSPEND);
|
MoveTimer(TIMER_SUSPEND);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gfApplicationActive = FALSE;
|
// gfApplicationActive = FALSE;
|
||||||
fRestore = TRUE;
|
fRestore = TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -423,7 +423,7 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_SETFOCUS:
|
case WM_SETFOCUS:
|
||||||
if (iScreenMode == 0)
|
//if (iScreenMode == 0)
|
||||||
{
|
{
|
||||||
#if !defined( JA2 ) && !defined( UTIL )
|
#if !defined( JA2 ) && !defined( UTIL )
|
||||||
if(!VideoInspectorIsEnabled())
|
if(!VideoInspectorIsEnabled())
|
||||||
|
|||||||
Reference in New Issue
Block a user