Reduce screen re-draw area for bridge middle signal updates

This commit is contained in:
Jonathan G Rennison
2021-08-30 01:46:40 +01:00
parent 50f1c25ff5
commit f6c2a81f72
7 changed files with 62 additions and 35 deletions

View File

@@ -13,6 +13,7 @@
#include "core/enum_type.hpp"
#include "track_type.h"
#include "tile_type.h"
#include "zoom_type.h"
/** Variant of the signal, i.e. how does the signal look? */
enum SignalVariant {
@@ -63,4 +64,9 @@ enum SignalState {
SIGNAL_STATE_MAX = SIGNAL_STATE_GREEN,
};
static const int SIGNAL_DIRTY_LEFT = 14 * ZOOM_LVL_BASE;
static const int SIGNAL_DIRTY_RIGHT = 14 * ZOOM_LVL_BASE;
static const int SIGNAL_DIRTY_TOP = 30 * ZOOM_LVL_BASE;
static const int SIGNAL_DIRTY_BOTTOM = 5 * ZOOM_LVL_BASE;
#endif /* SIGNAL_TYPE_H */