diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-06 02:26:09 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-06 02:26:09 +0200 |
commit | 42d49d70a7bfa8a40ca5d366c50d411a4fc5b48c (patch) | |
tree | ec78dc8161f6a5c599b0a514cdc4158021959903 /src/hole-cut.cpp | |
parent | 6ffa3333010961c564aa278758bdb8c279e8222a (diff) |
fix hole incorrect formulas in LUT
Diffstat (limited to 'src/hole-cut.cpp')
-rw-r--r-- | src/hole-cut.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/hole-cut.cpp b/src/hole-cut.cpp index 3983e4fd..8110510a 100644 --- a/src/hole-cut.cpp +++ b/src/hole-cut.cpp @@ -39,8 +39,7 @@ constexpr element make_element(uint8_t s) switch (s) { using enum location; - case x0|x1|y0|y1: return element{1, {{ // 9.1 - {R0, R1, R0, R1}, + case x0|x1|y0|y1: return element{0, {{ // 9.1 }}}; case __|__|__|__: return element{8, {{ // 14.1 {R0, H0, R0, H0}, @@ -49,7 +48,7 @@ constexpr element make_element(uint8_t s) {R0, H0, H0, H1}, {H1, R1, H0, H1}, {R0, H0, H1, R1}, - {H0, H1, H0, R1}, + {H0, H1, H1, R1}, {H1, R1, H1, R1}, }}}; @@ -58,7 +57,7 @@ constexpr element make_element(uint8_t s) {R0, R1, H1, R1}, }}}; case __|__|y0|y1: return element{2, {{ // 13.2 - {R0, H0, H1, R1}, + {R0, H0, R0, R1}, {H1, R1, R0, R1}, }}}; @@ -87,7 +86,7 @@ constexpr element make_element(uint8_t s) }}}; case __|__|y0|__: return element{3, {{ // 10.3 {R0, H0, R0, R1}, - {H0, H1, H0, R1}, + {H0, H1, H1, R1}, {H1, R1, R0, R1}, }}}; case __|__|__|y1: return element{3, {{ // 10.4 @@ -110,7 +109,7 @@ constexpr element make_element(uint8_t s) }}}; case __|x1|__|y1: return element{2, {{ // 11.4 {R0, R1, R0, H0}, - {R0, H0, H0, H1}, + {R0, H0, H0, R1}, }}}; } // NOLINTEND(*-simplify) |