Files
source/Ja2/local.h
T
0a5ce33c08 Move the remaining header build switches into the build system
Same reasoning as builddefines.h: BMP_RANDOM, CALLBACKTIMER, WINDOWED_MODE and
the three multiplayer switches are build configuration, and a header is the
wrong place to keep them. None of the six was ever toggled from source -- they
were unconditional #defines, or in WINDOWED_MODE's case keyed off _DEBUG.

WINDOWED_MODE now keys off the Debug configuration rather than _DEBUG. That is
the same thing in an ordinary Debug build, and fixes the asan Debug build,
which links the release CRT and so never saw _DEBUG at all.

All twelve executables stay bit-identical, this time with no differing bytes to
explain away at all.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-22 01:07:26 -03:00

79 lines
1.6 KiB
C

#ifndef __LOCAL_DEFINES_
#define __LOCAL_DEFINES_
#include "Screens.h"
//
// Make sure the application has a name
//
#define APPLICATION_NAME "Jagged Alliance 2 v1.13"
#define APPLICATION_NAMEW L"Jagged Alliance 2 v1.13"
//
// Basic defines for the video manager. These represent the starting values
//
extern UINT16 SCREEN_WIDTH;
extern UINT16 SCREEN_HEIGHT;
extern int iResolution; // Resolution id from the ini file
extern int iPlayIntro;
extern int iUseWinFonts;
extern float fTooltipScaleFactor;
extern int iDisableMouseScrolling;
extern INT16 iScreenWidthOffset;
extern INT16 iScreenHeightOffset;
extern UINT16 xResOffset;
extern UINT16 yResOffset;
extern UINT16 xResSize; // 640 / 800 / 1024
extern UINT16 yResSize; // 480 / 600 / 768
typedef enum
{
// The 640x480 resolution should always be the FIRST entry in this enum
_640x480 = 0,
_960x540 = 1,
// Place all resolutions that have both (a lower height AND a lower width) BEFORE the 800x600 resolution
_800x600 = 2,
_1024x600 = 3,
_1280x720 = 4,
// Place all resolutions that have both (a lower height AND a lower width) BEFORE the 1024x768 resolution
_1024x768 = 5,
_1280x768 = 6,
_1360x768 = 7,
_1366x768 = 8,
_1280x800 = 9,
_1440x900 = 10,
_1600x900 = 11,
_1280x960 = 12,
_1440x960 = 13,
_1770x1000 = 14,
_1280x1024 = 15,
_1360x1024 = 16,
_1600x1024 = 17,
_1440x1050 = 18,
_1680x1050 = 19,
_1920x1080 = 20,
_1600x1200 = 21,
_1920x1200 = 22,
_2560x1440 = 23,
_2560x1600 = 24,
_CustomRes = 25,
} SCREEN_RESOLUTION;
extern BOOLEAN fDisplayOverheadMap;
#define PIXEL_DEPTH 16
#endif