diff options
author | YRabbit <rabbit@yrabbit.cyou> | 2022-02-04 14:24:22 +1000 |
---|---|---|
committer | YRabbit <rabbit@yrabbit.cyou> | 2022-02-04 14:24:22 +1000 |
commit | 0675b98437df77f38a5d3f6278df7463d60cb3a3 (patch) | |
tree | 3a5f71933405e4773cf16749c4e3aaceb422b41f /gowin | |
parent | 368299d1437e4476e1ee41450194869e1ac6cf6b (diff) | |
download | nextpnr-0675b98437df77f38a5d3f6278df7463d60cb3a3.tar.gz nextpnr-0675b98437df77f38a5d3f6278df7463d60cb3a3.tar.bz2 nextpnr-0675b98437df77f38a5d3f6278df7463d60cb3a3.zip |
gowin: Speed up the GUI
By mistake, an empty decal gets filled with graphical elements.
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
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; |