fix PIXOFF based on cff29e546a

This commit is contained in:
Gwenhael Le Moine 2023-07-20 16:42:04 +02:00
parent 002da6df44
commit 0da1ab8590
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ class BitArray
def []=(position, value) def []=(position, value)
if value.zero? if value.zero?
@mask ^= (1 << position) @mask &= ~(1 << position)
else else
@mask |= (1 << position) @mask |= (1 << position)
end end

View file

@ -117,7 +117,7 @@ module RplLang
x = args[1].value.to_i x = args[1].value.to_i
y = args[0].value.to_i y = args[0].value.to_i
@lcd_grob.set_pixel(x, y, 0) # FIXME: toggle pixel instead of turning it off @lcd_grob.set_pixel(x, y, 0)
end ) end )
@dictionary.add_word!( ['pix?'], @dictionary.add_word!( ['pix?'],
category, category,