diff options
author | gatecat <gatecat@ds0.me> | 2022-02-04 15:47:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 15:47:30 +0000 |
commit | 69625564ca2659ca0fbbd3d85e75b70182febf6f (patch) | |
tree | c6685eb3f7f05da04c681901c474f0a9f42bbdfa /gowin | |
parent | d13a4f4c7a41b891877f6b1f02f2ecd61a207558 (diff) | |
parent | 0675b98437df77f38a5d3f6278df7463d60cb3a3 (diff) | |
download | nextpnr-69625564ca2659ca0fbbd3d85e75b70182febf6f.tar.gz nextpnr-69625564ca2659ca0fbbd3d85e75b70182febf6f.tar.bz2 nextpnr-69625564ca2659ca0fbbd3d85e75b70182febf6f.zip |
Merge pull request #906 from yrabbit/gowin-gui-noc
gowin: Speed up the GUI
Diffstat (limited to 'gowin')
-rw-r--r-- | gowin/gfx.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gowin/gfx.cc b/gowin/gfx.cc index a851f53a..daae5c71 100644 --- a/gowin/gfx.cc +++ b/gowin/gfx.cc @@ -5260,7 +5260,8 @@ void gfxSetWireDefaultDecal(Arch *arch, WireInfo &wire) snprintf(buf, sizeof(buf), "%s_active", wire.name.c_str(arch)); active_id = arch->id(buf); active.decal = active_id; - inactive_id = IdString(); + snprintf(buf, sizeof(buf), "%s_inactive", wire.name.c_str(arch)); + inactive_id = arch->id(buf); inactive.decal = inactive_id; active.x = inactive.x = 0; active.y = inactive.y = 0; @@ -5301,9 +5302,8 @@ void gfxSetWireDefaultDecal(Arch *arch, WireInfo &wire) snprintf(buf, sizeof(buf), "%s_active", wire.name.c_str(arch)); active_id = arch->id(buf); active.decal = active_id; - // snprintf(buf, sizeof(buf), "%s_inactive", wire.name.c_str(arch)); - // inactive_id = arch->id(buf); - inactive_id = IdString(); + snprintf(buf, sizeof(buf), "%s_inactive", wire.name.c_str(arch)); + inactive_id = arch->id(buf); inactive.decal = inactive_id; active.x = inactive.x = 0; active.y = inactive.y = 0; |