mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Remove 8bit mode
Obsolete and doesn't work * Remove gbPixelDepth * Remove 8-bit to 8-bit blitters * FileNameForBPP now only calls strcopy
This commit is contained in:
+2
-7
@@ -356,7 +356,7 @@ BOOLEAN InitializeVideoManager(HINSTANCE hInstance, UINT16 usCommandShow, void *
|
||||
//
|
||||
if( 0==iScreenMode ) /* Fullscreen mode */
|
||||
{
|
||||
ReturnCode = IDirectDraw2_SetDisplayMode( gpDirectDrawObject, SCREEN_WIDTH, SCREEN_HEIGHT, gbPixelDepth, 0, 0 );
|
||||
ReturnCode = IDirectDraw2_SetDisplayMode( gpDirectDrawObject, SCREEN_WIDTH, SCREEN_HEIGHT, PIXEL_DEPTH, 0, 0 );
|
||||
if (ReturnCode != DD_OK)
|
||||
{
|
||||
IDirectDraw2_SetCooperativeLevel(gpDirectDrawObject, ghWindow, DDSCL_NORMAL);
|
||||
@@ -372,7 +372,7 @@ BOOLEAN InitializeVideoManager(HINSTANCE hInstance, UINT16 usCommandShow, void *
|
||||
|
||||
gusScreenWidth = SCREEN_WIDTH;
|
||||
gusScreenHeight = SCREEN_HEIGHT;
|
||||
gubScreenPixelDepth = gbPixelDepth;
|
||||
gubScreenPixelDepth = PIXEL_DEPTH;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
@@ -2756,11 +2756,6 @@ BOOLEAN GetRGBDistribution(void)
|
||||
|
||||
Assert ( gpPrimarySurface != NULL );
|
||||
|
||||
// ONLY DO IF WE ARE IN 16BIT MODE
|
||||
if ( gbPixelDepth == 8 )
|
||||
{
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
ZEROMEM(SurfaceDescription);
|
||||
SurfaceDescription.dwSize = sizeof (DDSURFACEDESC);
|
||||
|
||||
Reference in New Issue
Block a user