Files
source/local.h
T
Wanne dfbb390371 - Developer feature: This is great for when in windowed mode eg development and your mouse is leaving the game window all the time to go to VS or another game instance on your desktop. (by haydent)
o this just means the screen stays put and not scrolling around like mad
o also the way it is coded, if the setting isnt there in the ini it just acts like usual.
o this also requires matching setting in Ja2.ini

;******************************************************************************************************************************
; Enable/Disable Mouse Scrolling of tactical view
;******************************************************************************************************************************

DISABLE_MOUSE_SCROLLING = 1

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5602 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2012-10-02 07:41:43 +00:00

94 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 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