From 2884c39367faf36cf3e72ad63fb2774e9a09f1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 12 Sep 2023 08:47:39 +0200 Subject: [PATCH] Contiguous zones --- src/map/ENC/objects.h | 1 + src/map/ENC/style.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/map/ENC/objects.h b/src/map/ENC/objects.h index 2240937f..b36bff7b 100644 --- a/src/map/ENC/objects.h +++ b/src/map/ENC/objects.h @@ -25,6 +25,7 @@ #define CANALS 23 #define CGUSTA 29 #define COALNE 30 +#define CONZNE 31 #define CONVYR 34 #define CRANES 35 #define CURENT 36 diff --git a/src/map/ENC/style.cpp b/src/map/ENC/style.cpp index 090d1136..6023a090 100644 --- a/src/map/ENC/style.cpp +++ b/src/map/ENC/style.cpp @@ -104,6 +104,8 @@ void Style::polygonStyle() _polygons[SUBTYPE(MARKUL, 3)] = Polygon(QImage(":/marine/fishing-farm-line.png")); _polygons[SUBTYPE(I_BERTHS, 6)] = Polygon(Qt::NoBrush, QPen(QColor("#eb49eb"), 1, Qt::DashLine)); + _polygons[TYPE(CONZNE)] = Polygon(Qt::NoBrush, QPen(QColor("#eb49eb"), 1, + Qt::DashDotLine)); _drawOrder << TYPE(M_COVR) << TYPE(LNDARE) << SUBTYPE(DEPARE, 0) @@ -122,7 +124,7 @@ void Style::polygonStyle() << SUBTYPE(RESARE, 9) << SUBTYPE(RESARE, 2) << SUBTYPE(I_RESARE, 2) << SUBTYPE(RESARE, 17) << SUBTYPE(I_RESARE, 17) << SUBTYPE(RESARE, 12) << SUBTYPE(I_RESARE, 12) << SUBTYPE(RESARE, 1) << TYPE(CBLARE) - << TYPE(PIPARE) << TYPE(PRCARE) << SUBTYPE(MARKUL, 3); + << TYPE(PIPARE) << TYPE(PRCARE) << SUBTYPE(MARKUL, 3) << TYPE(CONZNE); } void Style::lineStyle()