From 75100cd500132327a53c25fa2eff99faa4a90125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 6 Nov 2022 10:12:45 +0100 Subject: [PATCH] Added unsurveyed area render style --- src/map/ENC/objects.h | 1 + src/map/ENC/style.cpp | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/map/ENC/objects.h b/src/map/ENC/objects.h index b857f1dc..8f456c16 100644 --- a/src/map/ENC/objects.h +++ b/src/map/ENC/objects.h @@ -53,6 +53,7 @@ #define TSSBND 146 #define TSEZNE 150 #define UWTROC 153 +#define UNSARE 154 #define WRECKS 159 #define M_COVR 302 diff --git a/src/map/ENC/style.cpp b/src/map/ENC/style.cpp index 9fc51a68..6910fa6f 100644 --- a/src/map/ENC/style.cpp +++ b/src/map/ENC/style.cpp @@ -53,16 +53,17 @@ void Style::defaultPolygonStyle() _polygons[TYPE(TSEZNE)] = Polygon(QBrush("#80fcb4fc")); _polygons[TYPE(DRGARE)] = Polygon(QBrush(QColor("#a0a0ff"), Qt::Dense4Pattern)); + _polygons[TYPE(UNSARE)] = Polygon(QBrush("#999999")); _drawOrder << TYPE(M_COVR) << TYPE(LNDARE) << SUBTYPE(DEPARE, 0) << SUBTYPE(DEPARE, 1) << SUBTYPE(DEPARE, 2) << SUBTYPE(DEPARE, 3) - << SUBTYPE(DEPARE, 4) << SUBTYPE(DEPARE, 5) << SUBTYPE(DEPARE, 6) - << TYPE(LAKARE) << TYPE(CANALS) << TYPE(DYKCON) << TYPE(RIVERS) - << TYPE(DRGARE) << TYPE(FAIRWY) << TYPE(BUAARE) << TYPE(BUISGL) - << TYPE(AIRARE) << TYPE(BRIDGE) << TYPE(SLCONS) << TYPE(PONTON) - << TYPE(DMPGRD) << TYPE(TSEZNE) << TYPE(OBSTRN) << TYPE(ACHARE) - << SUBTYPE(RESARE, 9); + << TYPE(UNSARE) << SUBTYPE(DEPARE, 4) << SUBTYPE(DEPARE, 5) + << SUBTYPE(DEPARE, 6) << TYPE(LAKARE) << TYPE(CANALS) << TYPE(DYKCON) + << TYPE(RIVERS) << TYPE(DRGARE) << TYPE(FAIRWY) << TYPE(BUAARE) + << TYPE(BUISGL) << TYPE(AIRARE) << TYPE(BRIDGE) << TYPE(SLCONS) + << TYPE(PONTON) << TYPE(DMPGRD) << TYPE(TSEZNE) << TYPE(OBSTRN) + << TYPE(ACHARE) << SUBTYPE(RESARE, 9) << TYPE(154); } void Style::defaultLineStyle()