Merge branch 'master' into jgrpp
# Conflicts: # src/bridge_map.h # src/crashlog.cpp # src/industry.h # src/linkgraph/linkgraph_type.h # src/order_type.h # src/saveload/afterload.cpp # src/settings.cpp # src/settings_type.h # src/smallmap_gui.cpp # src/spritecache.cpp # src/stdafx.h # src/table/settings.h.preamble # src/train.h # src/vehicle.cpp # src/viewport.cpp # src/viewport_func.h # src/widgets/station_widget.h # src/zoom_func.h # src/zoom_type.h
This commit is contained in:
@@ -14,11 +14,11 @@
|
||||
|
||||
#include "core/enum_type.hpp"
|
||||
|
||||
static int const ZOOM_LVL_SHIFT = 2;
|
||||
static int const ZOOM_LVL_BASE = 1 << ZOOM_LVL_SHIFT;
|
||||
static uint const ZOOM_LVL_SHIFT = 2;
|
||||
static uint const ZOOM_LVL_BASE = 1 << ZOOM_LVL_SHIFT;
|
||||
|
||||
/** All zoom levels we know. */
|
||||
enum ZoomLevel {
|
||||
enum ZoomLevel : byte {
|
||||
/* Our possible zoom-levels */
|
||||
ZOOM_LVL_BEGIN = 0, ///< Begin for iteration.
|
||||
ZOOM_LVL_NORMAL = 0, ///< The normal zoom level.
|
||||
@@ -55,11 +55,8 @@ enum ZoomLevel {
|
||||
};
|
||||
DECLARE_POSTFIX_INCREMENT(ZoomLevel)
|
||||
|
||||
/** Type for storing the zoom level in a byte. */
|
||||
typedef SimpleTinyEnumT<ZoomLevel, byte> ZoomLevelByte;
|
||||
|
||||
extern ZoomLevelByte _gui_zoom;
|
||||
extern ZoomLevelByte _font_zoom;
|
||||
extern ZoomLevel _gui_zoom;
|
||||
extern ZoomLevel _font_zoom;
|
||||
#define ZOOM_LVL_GUI (_gui_zoom)
|
||||
#define ZOOM_LVL_FONT (_font_zoom)
|
||||
|
||||
|
Reference in New Issue
Block a user