Files
source/Screens.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

77 lines
3.8 KiB
C++

#include "Screens.h"
int iResolution; // INI file
int iPlayIntro;
int iDisableMouseScrolling;
int iUseWinFonts;
/* WANNE, Sgt.Kolja
* INI file (Windowed or Fullscreen)
* REPLACE all defines WINDOWED_MODE with this variable
* this is the LAST occurence of WINDOWED_MODE !
* If (and only if) optionally set, we got a preset of
* Windowed Screen. But this can be overloaded by INI or CmdLine
*/
#ifdef WINDOWED_MODE
int iScreenMode = 1; /* 1 for Windowed, 0 for Fullscreen */
#else
int iScreenMode = 0; /* 0 for Fullscreen */
#endif
BOOL bScreenModeCmdLine = FALSE;
UINT16 SCREEN_WIDTH;
UINT16 SCREEN_HEIGHT;
INT16 iScreenWidthOffset;
INT16 iScreenHeightOffset;
UINT16 xResSize; // 640 / 800 / 1024
UINT16 yResSize; // 480 / 600 / 768
UINT16 xResOffset; // For ARSP: ((SCREEN_WIDTH - xResSize) / 2)
UINT16 yResOffset; // For ARSP: ((SCREEN_HEIGHT - yResSize) / 2)
BOOLEAN fDisplayOverheadMap;
Screens GameScreens[MAX_SCREENS] =
{
{ EditScreenInit, EditScreenHandle, EditScreenShutdown },
{ SavingScreenInitialize, SavingScreenHandle, SavingScreenShutdown }, // Title Screen
{ LoadingScreenInitialize, LoadingScreenHandle, LoadingScreenShutdown }, // Title Screen
{ ErrorScreenInitialize, ErrorScreenHandle, ErrorScreenShutdown }, // Title Screen
{ InitScreenInitialize, InitScreenHandle, InitScreenShutdown }, // Title Screen
{ MainGameScreenInit, MainGameScreenHandle, MainGameScreenShutdown },
{ AniEditScreenInit, AniEditScreenHandle, AniEditScreenShutdown },
{ PalEditScreenInit, PalEditScreenHandle, PalEditScreenShutdown },
{ DebugScreenInit, DebugScreenHandle, DebugScreenShutdown },
{ MapScreenInit, MapScreenHandle, MapScreenShutdown },
{ LaptopScreenInit, LaptopScreenHandle, LaptopScreenShutdown },
{ LoadSaveScreenInit, LoadSaveScreenHandle, LoadSaveScreenShutdown },
{ MapUtilScreenInit, MapUtilScreenHandle, MapUtilScreenShutdown },
{ FadeScreenInit, FadeScreenHandle, FadeScreenShutdown },
{ MessageBoxScreenInit, MessageBoxScreenHandle, MessageBoxScreenShutdown },
{ MainMenuScreenInit, MainMenuScreenHandle, MainMenuScreenShutdown },
{ AutoResolveScreenInit, AutoResolveScreenHandle, AutoResolveScreenShutdown },
{ SaveLoadScreenInit, SaveLoadScreenHandle, SaveLoadScreenShutdown },
{ OptionsScreenInit, OptionsScreenHandle, OptionsScreenShutdown },
{ ShopKeeperScreenInit, ShopKeeperScreenHandle, ShopKeeperScreenShutdown },
{ SexScreenInit, SexScreenHandle, SexScreenShutdown },
{ GameInitOptionsScreenInit, GameInitOptionsScreenHandle, GameInitOptionsScreenShutdown },
{ DemoExitScreenInit, DemoExitScreenHandle, DemoExitScreenShutdown },
{ IntroScreenInit, IntroScreenHandle, IntroScreenShutdown },
{ CreditScreenInit, CreditScreenHandle, CreditScreenShutdown },
{ MPJoinScreenInit, MPJoinScreenHandle, MPJoinScreenShutdown }, // OJW - 20081129
{ MPHostScreenInit, MPHostScreenHandle, MPHostScreenShutdown },
{ MPScoreScreenInit, MPScoreScreenHandle, MPScoreScreenShutdown }, // OJW - 20081222
{ MPChatScreenInit, MPChatScreenHandle, MPChatScreenShutdown }, // OJW - 20090314
{ MPConnectScreenInit, MPConnectScreenHandle, MPConnectScreenShutdown }, // OJW - 20090422
{ MiniGameScreenInit, MiniGameScreenHandle, MiniGameScreenShutdown }, // added by Flugente
{ FeaturesScreen::Init, FeaturesScreen::Handle, FeaturesScreen::Shutdown }, //rftr
#ifdef JA2BETAVERSION
{ AIViewerScreenInit, AIViewerScreenHandle, AIViewerScreenShutdown },
#endif
{ QuestDebugScreenInit, QuestDebugScreenHandle, QuestDebugScreenShutdown }
};