Files
source/local.h
T
Wanne c3eb3a5434 Turned WINFONTS macro into the ja2.ini property (USE_WINFONTS) (by scodec)
- Set USE_WINFONTS = 1, if you play Chinese version of 1.13, otherwise 0 (Default)
- This is the first step in a process making only ONE executable file for ALL the different languages

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6488 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2013-10-13 19:02:27 +00:00

95 lines
1.9 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
//
#ifdef BOUNDS_CHECKER
#define WINDOWED_MODE
#endif
#ifdef _DEBUG
#define WINDOWED_MODE
#endif
extern UINT16 SCREEN_WIDTH;
extern UINT16 SCREEN_HEIGHT;
extern int iResolution; // Resolution id from the ini file
extern int iPlayIntro;
extern int iUseWinFonts;
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,
// Place all resolutions that have both (a lower height AND a lower width) BEFORE the 800x600 resolution
_800x600 = 1,
_1024x600 = 2,
_1280x720 = 3,
// Place all resolutions that have both (a lower height AND a lower width) BEFORE the 1024x768 resolution
_1024x768 = 4,
_1280x768 = 5,
_1360x768 = 6,
_1366x768 = 7,
_1280x800 = 8,
_1440x900 = 9,
_1600x900 = 10,
_1280x960 = 11,
_1440x960 = 12,
_1770x1000 = 13,
_1280x1024 = 14,
_1360x1024 = 15,
_1600x1024 = 16,
_1440x1050 = 17,
_1680x1050 = 18,
_1920x1080 = 19,
_1600x1200 = 20,
_1920x1200 = 21,
_2560x1440 = 22,
_2560x1600 = 23,
} SCREEN_RESOLUTION;
extern BOOLEAN fDisplayOverheadMap;
#define PIXEL_DEPTH 16
//
// These defines are used as MUTEX handles.
//
#define MAX_MUTEX_HANDLES 32
#define REFRESH_THREAD_MUTEX 0
#define FRAME_BUFFER_MUTEX 1
#define MOUSE_BUFFER_MUTEX 2
#define DIRTY_BUFFER_MUTEX 3
#define SCROLL_MESSAGE_MUTEX 4
#endif