From bb2513c9a8e04f0311a81d81dea74f5467ee9605 Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Mon, 1 Jul 2024 10:39:54 -0700 Subject: [PATCH] Add apologetic comment --- serial.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/serial.cpp b/serial.cpp index c29dda99..1d84e6f4 100644 --- a/serial.cpp +++ b/serial.cpp @@ -678,6 +678,9 @@ int serialize_feature(struct serialization_state *sst, serial_feature &sf, std:: midx = (sf.bbox[0] / 2 + sf.bbox[2] / 2) & ((1LL << 32) - 1); midy = (sf.bbox[1] / 2 + sf.bbox[3] / 2) & ((1LL << 32) - 1); } else if ((additional[A_DROP_DENSEST_AS_NEEDED] || additional[A_COALESCE_DENSEST_AS_NEEDED]) && sf.t == VT_POLYGON) { + // This probably should really apply to all polygons, + // but I hate to change the feature sequence in all the + // test fixtures again draw scaled_center = center_of_mass_mp(scaled_geometry); midx = SHIFT_LEFT(scaled_center.x) & ((1LL << 32) - 1); midy = SHIFT_LEFT(scaled_center.y) & ((1LL << 32) - 1);