mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
- we no longer support Windows 9x or NT 4 so its special code may just be removed entirely.
This commit is contained in:
parent
33a58a3ada
commit
446d1eb9c8
5 changed files with 7 additions and 71 deletions
|
@ -87,7 +87,6 @@ extern IDirectDraw2 *DDraw;
|
||||||
// PUBLIC DATA DEFINITIONS -------------------------------------------------
|
// PUBLIC DATA DEFINITIONS -------------------------------------------------
|
||||||
|
|
||||||
CVAR (Bool, vid_palettehack, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
CVAR (Bool, vid_palettehack, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||||
CVAR (Bool, vid_attachedsurfaces, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
|
||||||
CVAR (Bool, vid_noblitter, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
CVAR (Bool, vid_noblitter, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||||
CVAR (Int, vid_displaybits, 8, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
CVAR (Int, vid_displaybits, 8, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||||
CUSTOM_CVAR (Float, rgamma, 1.f, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
CUSTOM_CVAR (Float, rgamma, 1.f, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||||
|
@ -264,16 +263,8 @@ bool DDrawFB::CreateResources ()
|
||||||
}
|
}
|
||||||
LOG3 ("Mode set to %d x %d x %d\n", Width, Height, bits);
|
LOG3 ("Mode set to %d x %d x %d\n", Width, Height, bits);
|
||||||
|
|
||||||
if (vid_attachedsurfaces && OSPlatform == os_WinNT4)
|
if (!CreateSurfacesComplex ())
|
||||||
{
|
return false;
|
||||||
if (!CreateSurfacesAttached ())
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (!CreateSurfacesComplex ())
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (UseBlitter)
|
if (UseBlitter)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1191,11 +1191,7 @@ void I_StartupMouse ()
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
if (OSPlatform == os_WinNT4)
|
if (MyRegisterRawInputDevices != NULL)
|
||||||
{
|
|
||||||
new_mousemode = MM_Win32;
|
|
||||||
}
|
|
||||||
else if (MyRegisterRawInputDevices != NULL)
|
|
||||||
{
|
{
|
||||||
new_mousemode = MM_RawInput;
|
new_mousemode = MM_RawInput;
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,7 +168,6 @@ int (*I_GetTime) (bool saveMS);
|
||||||
int (*I_WaitForTic) (int);
|
int (*I_WaitForTic) (int);
|
||||||
void (*I_FreezeTime) (bool frozen);
|
void (*I_FreezeTime) (bool frozen);
|
||||||
|
|
||||||
os_t OSPlatform;
|
|
||||||
bool gameisdead;
|
bool gameisdead;
|
||||||
|
|
||||||
// PRIVATE DATA DEFINITIONS ------------------------------------------------
|
// PRIVATE DATA DEFINITIONS ------------------------------------------------
|
||||||
|
@ -542,24 +541,7 @@ void I_DetectOS(void)
|
||||||
|
|
||||||
switch (info.dwPlatformId)
|
switch (info.dwPlatformId)
|
||||||
{
|
{
|
||||||
case VER_PLATFORM_WIN32_WINDOWS:
|
|
||||||
OSPlatform = os_Win95;
|
|
||||||
if (info.dwMinorVersion < 10)
|
|
||||||
{
|
|
||||||
osname = "95";
|
|
||||||
}
|
|
||||||
else if (info.dwMinorVersion < 90)
|
|
||||||
{
|
|
||||||
osname = "98";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
osname = "Me";
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case VER_PLATFORM_WIN32_NT:
|
case VER_PLATFORM_WIN32_NT:
|
||||||
OSPlatform = info.dwMajorVersion < 5 ? os_WinNT4 : os_Win2k;
|
|
||||||
osname = "NT";
|
osname = "NT";
|
||||||
if (info.dwMajorVersion == 5)
|
if (info.dwMajorVersion == 5)
|
||||||
{
|
{
|
||||||
|
@ -605,31 +587,14 @@ void I_DetectOS(void)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
OSPlatform = os_unknown;
|
|
||||||
osname = "Unknown OS";
|
osname = "Unknown OS";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OSPlatform == os_Win95)
|
if (!batchrun) Printf ("OS: Windows %s (NT %lu.%lu) Build %lu\n %s\n",
|
||||||
{
|
osname,
|
||||||
if (!batchrun) Printf ("OS: Windows %s %lu.%lu.%lu %s\n",
|
info.dwMajorVersion, info.dwMinorVersion,
|
||||||
osname,
|
info.dwBuildNumber, info.szCSDVersion);
|
||||||
info.dwMajorVersion, info.dwMinorVersion,
|
|
||||||
info.dwBuildNumber & 0xffff, info.szCSDVersion);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (!batchrun) Printf ("OS: Windows %s (NT %lu.%lu) Build %lu\n %s\n",
|
|
||||||
osname,
|
|
||||||
info.dwMajorVersion, info.dwMinorVersion,
|
|
||||||
info.dwBuildNumber, info.szCSDVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (OSPlatform == os_unknown)
|
|
||||||
{
|
|
||||||
if (!batchrun) Printf ("(Assuming Windows 2000)\n");
|
|
||||||
OSPlatform = os_Win2k;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
|
@ -47,15 +47,6 @@ extern void SetLanguageIDs ();
|
||||||
// [RH] Detects the OS the game is running under.
|
// [RH] Detects the OS the game is running under.
|
||||||
void I_DetectOS (void);
|
void I_DetectOS (void);
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
os_unknown,
|
|
||||||
os_Win95,
|
|
||||||
os_WinNT4,
|
|
||||||
os_Win2k
|
|
||||||
} os_t;
|
|
||||||
|
|
||||||
extern os_t OSPlatform;
|
|
||||||
|
|
||||||
// Called by DoomMain.
|
// Called by DoomMain.
|
||||||
void I_Init (void);
|
void I_Init (void);
|
||||||
|
|
||||||
|
|
|
@ -325,13 +325,6 @@ void Win32Video::InitDDraw ()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (OSPlatform == os_Win95)
|
|
||||||
{
|
|
||||||
// Windows 95 will let us use Mode X. If we didn't find any linear
|
|
||||||
// modes in the loop above, add the Mode X modes here.
|
|
||||||
AddMode (320, 200, 8, 200, 0);
|
|
||||||
AddMode (320, 240, 8, 240, 0);
|
|
||||||
}
|
|
||||||
AddLowResModes ();
|
AddLowResModes ();
|
||||||
}
|
}
|
||||||
AddLetterboxModes ();
|
AddLetterboxModes ();
|
||||||
|
|
Loading…
Reference in a new issue