mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Original Source for 1.13 Mod High Resolution version from 12/06/05
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <time.h>
|
||||
#include "sgp.h"
|
||||
#include "himage.h"
|
||||
#include "vsurface.h"
|
||||
#include "vsurface_private.h"
|
||||
#include "wcheck.h"
|
||||
#include "sysutil.h"
|
||||
#include "renderworld.h"
|
||||
#endif
|
||||
|
||||
UINT32 guiBOTTOMPANEL = 0;
|
||||
UINT32 guiRIGHTPANEL = 0;
|
||||
UINT32 guiRENDERBUFFER = 0;
|
||||
UINT32 guiSAVEBUFFER = 0;
|
||||
UINT32 guiEXTRABUFFER = 0;
|
||||
|
||||
BOOLEAN gfExtraBuffer = FALSE;
|
||||
|
||||
BOOLEAN InitializeSystemVideoObjects( )
|
||||
{
|
||||
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
BOOLEAN InitializeGameVideoObjects( )
|
||||
{
|
||||
VSURFACE_DESC vs_desc;
|
||||
UINT16 usWidth;
|
||||
UINT16 usHeight;
|
||||
UINT8 ubBitDepth;
|
||||
|
||||
// Create render buffer
|
||||
GetCurrentVideoSettings( &usWidth, &usHeight, &ubBitDepth );
|
||||
vs_desc.fCreateFlags = VSURFACE_CREATE_DEFAULT | VSURFACE_SYSTEM_MEM_USAGE;
|
||||
vs_desc.usWidth = usWidth;
|
||||
vs_desc.usHeight = usHeight;
|
||||
vs_desc.ubBitDepth = ubBitDepth;
|
||||
|
||||
CHECKF( AddVideoSurface( &vs_desc, &guiSAVEBUFFER ) );
|
||||
|
||||
CHECKF( AddVideoSurface( &vs_desc, &guiEXTRABUFFER ) );
|
||||
gfExtraBuffer = TRUE;
|
||||
|
||||
guiRENDERBUFFER=FRAME_BUFFER;
|
||||
|
||||
return( TRUE );
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user