Merged Multi Player Project into main branch

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2144 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2008-05-12 08:20:47 +00:00
parent c448713412
commit 3e22dce318
132 changed files with 14527 additions and 4859 deletions
+36 -36
View File
@@ -386,25 +386,25 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP
}
break;
case FALSE: // We are suspending direct draw
#ifdef JA2
// pause the JA2 Global clock
PauseTime( TRUE );
SuspendVideoManager();
#else
#ifndef UTIL
if(!VideoInspectorIsEnabled())
SuspendVideoManager();
#endif
#endif
// suspend movement timer, to prevent timer crash if delay becomes long
// * it doesn't matter whether the 3-D engine is actually running or not, or if it's even been initialized
// * restore is automatic, no need to do anything on reactivation
#if !defined( JA2 ) && !defined( UTIL )
MoveTimer(TIMER_SUSPEND);
#endif
gfApplicationActive = FALSE;
fRestore = TRUE;
//#ifdef JA2
// // pause the JA2 Global clock
// PauseTime( TRUE );
// SuspendVideoManager();
//#else
//#ifndef UTIL
// if(!VideoInspectorIsEnabled())
// SuspendVideoManager();
//#endif
//#endif
// // suspend movement timer, to prevent timer crash if delay becomes long
// // * it doesn't matter whether the 3-D engine is actually running or not, or if it's even been initialized
// // * restore is automatic, no need to do anything on reactivation
//#if !defined( JA2 ) && !defined( UTIL )
// MoveTimer(TIMER_SUSPEND);
//#endif
//
// gfApplicationActive = FALSE;
// fRestore = TRUE;
break;
}
break;
@@ -419,27 +419,27 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP
break;
case WM_SETFOCUS:
#if !defined( JA2 ) && !defined( UTIL )
if(!VideoInspectorIsEnabled())
RestoreVideoManager();
gfApplicationActive=TRUE;
// RestrictMouseToXYXY(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
#else
RestoreCursorClipRect( );
#endif
//#if !defined( JA2 ) && !defined( UTIL )
// if(!VideoInspectorIsEnabled())
// RestoreVideoManager();
// gfApplicationActive=TRUE;
//// RestrictMouseToXYXY(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
//#else
// RestoreCursorClipRect( );
//#endif
break;
case WM_KILLFOCUS:
#if !defined( JA2 ) && !defined( UTIL )
if(!VideoInspectorIsEnabled())
SuspendVideoManager();
gfApplicationActive=FALSE;
FreeMouseCursor();
#endif
// Set a flag to restore surfaces once a WM_ACTIVEATEAPP is received
fRestore = TRUE;
//#if !defined( JA2 ) && !defined( UTIL )
// if(!VideoInspectorIsEnabled())
// SuspendVideoManager();
//
// gfApplicationActive=FALSE;
// FreeMouseCursor();
//#endif
// // Set a flag to restore surfaces once a WM_ACTIVEATEAPP is received
// fRestore = TRUE;
break;