Commit c6c7c7d3 authored by qinsoon's avatar qinsoon

fix bug in previous commits

parent 8825e1d3
......@@ -52,7 +52,10 @@ fn is_precolored(reg: MuID) -> bool {
#[inline(always)]
fn is_usable(reg: MuID) -> bool {
if backend::all_usable_regs().iter().any(|x| x.id() == reg) {
if backend::all_usable_regs()
.iter()
.any(|x| x.id() == backend::get_color_for_precolored(reg))
{
true
} else {
false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment