Update drawGroup to propagate only GroupId
This commit is contained in:
parent
fb9ffd9498
commit
397406bd21
@ -525,7 +525,7 @@ std::vector<GraphicElement> Arch::getDecalGraphics(DecalId decal) const
|
|||||||
GroupId group(decal.tile, decal.index);
|
GroupId group(decal.tile, decal.index);
|
||||||
Loc loc;
|
Loc loc;
|
||||||
tile_xy(chip_info, decal.tile, loc.x, loc.y);
|
tile_xy(chip_info, decal.tile, loc.x, loc.y);
|
||||||
uarch->drawGroup(ret, getGroupType(group), loc);
|
uarch->drawGroup(ret, group, loc);
|
||||||
} else if (decal.type == DecalId::TYPE_BEL) {
|
} else if (decal.type == DecalId::TYPE_BEL) {
|
||||||
BelId bel(decal.tile, decal.index);
|
BelId bel(decal.tile, decal.index);
|
||||||
GraphicElement::style_t style = decal.active ? GraphicElement::STYLE_ACTIVE : GraphicElement::STYLE_INACTIVE;
|
GraphicElement::style_t style = decal.active ? GraphicElement::STYLE_ACTIVE : GraphicElement::STYLE_INACTIVE;
|
||||||
|
@ -115,7 +115,7 @@ struct HimbaechelAPI
|
|||||||
virtual void drawPip(std::vector<GraphicElement> &g, GraphicElement::style_t style, Loc loc, WireId src,
|
virtual void drawPip(std::vector<GraphicElement> &g, GraphicElement::style_t style, Loc loc, WireId src,
|
||||||
IdString src_type, int32_t src_id, WireId dst, IdString dst_type, int32_t dst_id) {};
|
IdString src_type, int32_t src_id, WireId dst, IdString dst_type, int32_t dst_id) {};
|
||||||
|
|
||||||
virtual void drawGroup(std::vector<GraphicElement> &g, IdString group_type, Loc loc) {};
|
virtual void drawGroup(std::vector<GraphicElement> &g, GroupId group, Loc loc) {};
|
||||||
|
|
||||||
// Routing methods
|
// Routing methods
|
||||||
virtual void expandBoundingBox(BoundingBox &bb) const;
|
virtual void expandBoundingBox(BoundingBox &bb) const;
|
||||||
|
@ -139,8 +139,9 @@ struct ExampleImpl : HimbaechelAPI
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawGroup(std::vector<GraphicElement> &g, IdString group_type, Loc loc) override
|
void drawGroup(std::vector<GraphicElement> &g, GroupId group, Loc loc) override
|
||||||
{
|
{
|
||||||
|
IdString group_type = ctx->getGroupType(group);
|
||||||
if (group_type == id_SWITCHBOX) {
|
if (group_type == id_SWITCHBOX) {
|
||||||
GraphicElement el;
|
GraphicElement el;
|
||||||
el.type = GraphicElement::TYPE_BOX;
|
el.type = GraphicElement::TYPE_BOX;
|
||||||
|
Loading…
Reference in New Issue
Block a user