mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Merged New Inventory Project into main branch
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+19
-19
@@ -5,9 +5,9 @@
|
||||
// Stolen from Nemesis by Derek Beland.
|
||||
// Originally by Derek Beland and Bret Rowden.
|
||||
//
|
||||
// ChangeLog:
|
||||
// 10.12.2005 Lesh ripped everything that refers to MSS
|
||||
// 15.12.2005 Lesh enabled sound in video
|
||||
// ChangeLog:
|
||||
// 10.12.2005 Lesh ripped everything that refers to MSS
|
||||
// 15.12.2005 Lesh enabled sound in video
|
||||
//----------------------------------------------------------------------------------
|
||||
//#include "LocalCodeAll.h"
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
#define SMK_FLIC_AUTOCLOSE 0x00000008 // Close when done
|
||||
|
||||
//-Globals-------------------------------------------------------------------------
|
||||
SMKFLIC SmkList[SMK_NUM_FLICS];
|
||||
SMKFLIC SmkList[SMK_NUM_FLICS];
|
||||
|
||||
HWND hDisplayWindow=0;
|
||||
UINT32 uiDisplayHeight, uiDisplayWidth;
|
||||
@@ -95,13 +95,13 @@ DDSURFACEDESC SurfaceDescription;
|
||||
{
|
||||
if(SmkList[uiCount].uiFlags & SMK_FLIC_PLAYING)
|
||||
{
|
||||
fFlicStatus=TRUE;
|
||||
fFlicStatus=TRUE;
|
||||
if(!fSuspendFlics)
|
||||
{
|
||||
if(!SmackWait(SmkList[uiCount].SmackHandle))
|
||||
{
|
||||
DDLockSurface(SmkList[uiCount].lpDDS, NULL, &SurfaceDescription, 0, NULL);
|
||||
SmackToBuffer(SmkList[uiCount].SmackHandle,SmkList[uiCount].uiLeft,
|
||||
SmackToBuffer(SmkList[uiCount].SmackHandle,SmkList[uiCount].uiLeft,
|
||||
SmkList[uiCount].uiTop,
|
||||
SurfaceDescription.lPitch,
|
||||
SmkList[uiCount].SmackHandle->Height,
|
||||
@@ -129,7 +129,7 @@ DDSURFACEDESC SurfaceDescription;
|
||||
}
|
||||
if(!fFlicStatus)
|
||||
SmkShutdownVideo();
|
||||
|
||||
|
||||
return(fFlicStatus);
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ void SmkSetBlitPosition(SMKFLIC *pSmack, UINT32 uiLeft, UINT32 uiTop)
|
||||
pSmack->uiLeft=uiLeft;
|
||||
pSmack->uiTop=uiTop;
|
||||
}
|
||||
|
||||
|
||||
void SmkCloseFlic(SMKFLIC *pSmack)
|
||||
{
|
||||
// Attempt opening the filename
|
||||
@@ -282,18 +282,18 @@ void SmkSetupVideo(void)
|
||||
GetVideoSurface( &hVSurface, FRAME_BUFFER );
|
||||
lpVideoPlayback2 = GetVideoSurfaceDDSurface( hVSurface );
|
||||
|
||||
ZEROMEM(SurfaceDescription);
|
||||
SurfaceDescription.dwSize = sizeof (DDSURFACEDESC);
|
||||
ReturnCode = IDirectDrawSurface2_GetSurfaceDesc ( lpVideoPlayback2, &SurfaceDescription );
|
||||
if (ReturnCode != DD_OK)
|
||||
{
|
||||
DirectXAttempt ( ReturnCode, __LINE__, __FILE__ );
|
||||
return;
|
||||
}
|
||||
|
||||
usRed = (UINT16) SurfaceDescription.ddpfPixelFormat.dwRBitMask;
|
||||
ZEROMEM(SurfaceDescription);
|
||||
SurfaceDescription.dwSize = sizeof (DDSURFACEDESC);
|
||||
ReturnCode = IDirectDrawSurface2_GetSurfaceDesc ( lpVideoPlayback2, &SurfaceDescription );
|
||||
if (ReturnCode != DD_OK)
|
||||
{
|
||||
DirectXAttempt ( ReturnCode, __LINE__, __FILE__ );
|
||||
return;
|
||||
}
|
||||
|
||||
usRed = (UINT16) SurfaceDescription.ddpfPixelFormat.dwRBitMask;
|
||||
usGreen = (UINT16) SurfaceDescription.ddpfPixelFormat.dwGBitMask;
|
||||
usBlue = (UINT16) SurfaceDescription.ddpfPixelFormat.dwBBitMask;
|
||||
usBlue = (UINT16) SurfaceDescription.ddpfPixelFormat.dwBBitMask;
|
||||
|
||||
if((usRed==0xf800) && (usGreen==0x07e0) && (usBlue==0x001f))
|
||||
guiSmackPixelFormat=SMACKBUFFER565;
|
||||
|
||||
Reference in New Issue
Block a user