From 6cfccc502fe0c523d53f6668c2424ca1870fb4b9 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 22 Jun 2025 09:44:22 +0200 Subject: [PATCH] Fix GUI --- himbaechel/uarch/gatemate/gfx.cc | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/himbaechel/uarch/gatemate/gfx.cc b/himbaechel/uarch/gatemate/gfx.cc index 5a8cd851..db9b1e84 100644 --- a/himbaechel/uarch/gatemate/gfx.cc +++ b/himbaechel/uarch/gatemate/gfx.cc @@ -34,6 +34,13 @@ void GateMateImpl::drawBel(std::vector &g, GraphicElement::style el.type = GraphicElement::TYPE_BOX; el.style = style; switch (bel_type.index) { + case id_CPE_LT_FULL.index: + el.x1 = loc.x + 0.21; + el.x2 = el.x1 + 0.18; + el.y1 = loc.y + 0.25; + el.y2 = el.y1 + 0.50; + g.push_back(el); + break; case id_CPE_LT_L.index: el.x1 = loc.x + 0.20; el.x2 = el.x1 + 0.20; @@ -48,6 +55,34 @@ void GateMateImpl::drawBel(std::vector &g, GraphicElement::style el.y2 = el.y1 + 0.20; g.push_back(el); break; + case id_CPE_FF_L.index: + el.x1 = loc.x + 0.45; + el.x2 = el.x1 + 0.10; + el.y1 = loc.y + 0.25; + el.y2 = el.y1 + 0.20; + g.push_back(el); + break; + case id_CPE_FF_U.index: + el.x1 = loc.x + 0.45; + el.x2 = el.x1 + 0.10; + el.y1 = loc.y + 0.55; + el.y2 = el.y1 + 0.20; + g.push_back(el); + break; + case id_CPE_RAMIO_L.index: + el.x1 = loc.x + 0.60; + el.x2 = el.x1 + 0.10; + el.y1 = loc.y + 0.25; + el.y2 = el.y1 + 0.20; + g.push_back(el); + break; + case id_CPE_RAMIO_U.index: + el.x1 = loc.x + 0.60; + el.x2 = el.x1 + 0.10; + el.y1 = loc.y + 0.55; + el.y2 = el.y1 + 0.20; + g.push_back(el); + break; case id_RAM.index: el.x1 = loc.x + 0.70; el.x2 = el.x1 + 0.20;