fix PIXOFF based on cff29e546a
This commit is contained in:
parent
002da6df44
commit
0da1ab8590
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue