From 36b4e3382dc552fcd1b078bdd246dc14379394a1 Mon Sep 17 00:00:00 2001 From: Sergiusz Bazanski Date: Sat, 14 Jul 2018 18:50:50 +0100 Subject: Revert "Make GUI nice and smooth." This reverts commit a8c84e90a39c54174dd24b5b76bd17aed8311481. --- ice40/arch.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'ice40/arch.cc') diff --git a/ice40/arch.cc b/ice40/arch.cc index 547dbcd6..af6e922c 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -534,8 +534,9 @@ DecalXY Arch::getGroupDecal(GroupId group) const return decalxy; }; -std::vector ArchRProxyMethods::getDecalGraphics(DecalId decal) const +std::vector Arch::getDecalGraphics(DecalId decal) const { + boost::shared_lock_guard lock(mtx_); std::vector ret; if (decal.type == DecalId::TYPE_FRAME) { @@ -567,7 +568,7 @@ std::vector ArchRProxyMethods::getDecalGraphics(DecalId decal) c BelId bel; bel.index = decal.index; - auto bel_type = parent_->getBelType(bel); + auto bel_type = getBelType(bel); if (bel_type == TYPE_ICESTORM_LC) { GraphicElement el; @@ -953,9 +954,4 @@ CellInfo *ArchRWProxyMethods::getCell(IdString cell) return parent_->cells.at(cell).get(); } -UIUpdatesRequired ArchRWProxyMethods::getUIUpdatesRequired(void) -{ - return parent_->getUIUpdatesRequired(); -} - NEXTPNR_NAMESPACE_END -- cgit v1.2.3