forked from LK8000/LK8000
/
options.h
116 lines (84 loc) · 3.6 KB
/
options.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*
LK8000 Tactical Flight Computer - WWW.LK8000.IT
Released under GNU/GPL License v.2
See CREDITS.TXT file for authors and copyrights
$Id: options.h,v 1.1 2011/12/21 10:35:29 root Exp root $
*/
#ifndef OPTIONS_H
#define OPTIONS_H
// define this to be true for windows PC port
#if !defined(WINDOWSPC)
#define WINDOWSPC 0
#endif
/////////////////////////////////////////////////////////
// This stuff need checking. At 110614 unknown if working
#if (WINDOWSPC>0)
#if _DEBUG
// leak checking
#define CRTDBG_MAP_ALLOC
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#endif
#endif
/////////////////////////////////////////////////////////
#include "compatibility.h"
// Disable internally generated sounds
// #define DISABLEAUDIO
#ifdef PNA
#define NOLINETO
#endif
// CACHE CALCULATIONS: IT IS IMPERATIVE THAT THIS OPTION CAN BE DISABLED ANYTIME!
#define LK_CACHECALC 1
// Notice: These are only used if above is active!
// MacCreadyAltitude and its statistics
#define LK_CACHECALC_MCA 60
// #define LK_CACHECALC_MCA_STAT 1
// New topology OPTIMIZE options
#define TOPOFAST 1
#define TOPOFASTLABEL 1
#define TOPOFASTCACHE 1
#define IBLSCALE(x) ( (ScreenIntScale) ? ((x)*ScreenScale) : ((int)((x)*ScreenDScale)))
#define NIBLSCALE(x) (LKIBLSCALE[x])
#define MAXIBLSCALE 100 // CAREFUL! NIBLSCALE can be used only UP TO MAXIBLSCALE!
//
// TEMPORARY FIXES THAT REQUIRE EXTENSIVE TESTING - KEEP #ifdef until expiring date
// When expire date is reached, unnecessary old stuff can be removed, even if commented
//
#define ALPHADEBUG 1 // DEBUG STARTUPSTORE MESSAGES FOR ALPHA AND BETA VERSIONS
// IN FINAL VERSIONS MAY BE DISABLED.. MAYBE.
#define TESTBENCH 1 // THIS IS USING MORE MESSAGES, AND IT IS GOOD FOR DEVELOPMENT VERSIONS
// For example, all dev.vers have CPUSTATS activated by this define,
// automatically.
// COMMENT BEFORE PUBLIC RELEASE, NO EXCEPTIONS: INTERNAL USE ONLY!
#define USELKASSERT 1 // Enable LKASSERT checks and diagnostic messages at runtime.
// For TESTBENCH and beta versions this should be always ENABLED.
// Only in official stable versions it should be disabled.
#if TESTBENCH
#define CPUSTATS 1 // Show cpu stats in inverted text mode inside map mode
#endif
#if (WINDOWSPC>0)
#define WINE
#endif
// #define LKCOMPETITION 1 // Will disable TRI
// This stuff will be permanently removed shortly
// #define JP2000 1 // use JPG2000 terrain files .jp2 and jasper library
#define LKMTERRAIN 1 // allow DEM terrain inside dat and lkm topology files
// #define RASTERCACHE 1 // fallback to cached dem if it does not fit in memory entirely.
// Does not work.
//#define NEWSMARTZOOM 1 // stretch bitmap for fast zoom, uncompleted work (almost working)
//#define USEBIGZOOM 1 // will fast redraw only terrain, with no topology &c.
/*
* Incomplete work, or stuff that never got into production versions but still interesting
*
#define USESWITCHES 1 // External device switch support / to be completed because unused
// Do not remove, it can be worked out with no problems if we want to
// support external switches through NMEA input.
#define DSX // only an experimental test feature for sms reception
// TopologyWriter for adding topo labels dynamically, previously used for markers
// May be sill used for custom user's topology, so let's keep it for a while.
#define USETOPOMARKS 1
*
*/
#include "Debug.h" // DEBUG OPTIONS FOR EVERYONE, depending also on TESTBENCH
#endif