Files
source/TileEngine/sysutil.cpp
T
majcostaandGitHub 24425a82b1 More unused stuff removal (#49)
* More unused stuff removal

delete:
- giant 'metaheaders' (JA2 All.h, Laptop All.h, etc), preferring to add #includes directly where needed
- unused ExceptionHandling and DbMan translation units
- unused WizShare.h, Bitmap.h, trle.h, video_private.h headers

* remove mentions from vc proj files too

* remove preprocessor conditionals for unused definitions

find . -iname '*.h' -o -iname '*.cpp' -exec unifdef.exe -m -UPRECOMPILED_HEADERS -UJA2_PRECOMPILED_HEADERS -UWIZ8_PRECOMPILED_HEADERS -UPRECOMPILEDHEADERS {} ';'

then manually fixed a couple files the tool errored out on

* yes, the comments too

as title
2023-01-03 15:51:48 +02:00

43 lines
934 B
C++

#include "sgp.h"
#include "wcheck.h"
#include "sysutil.h"
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 );
}