s/display/frame_buffer/g
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
parent
010460a230
commit
edd0884f9d
2 changed files with 6 additions and 6 deletions
|
@ -30,7 +30,7 @@ class Interpreter
|
|||
include Types
|
||||
|
||||
attr_reader :stack,
|
||||
:display,
|
||||
:frame_buffer,
|
||||
:dictionary,
|
||||
:version
|
||||
|
||||
|
@ -42,11 +42,11 @@ class Interpreter
|
|||
@dictionary = dictionary
|
||||
@stack = stack
|
||||
|
||||
initialize_display
|
||||
initialize_frame_buffer
|
||||
end
|
||||
|
||||
def initialize_display
|
||||
@display = BitArray.new
|
||||
def initialize_frame_buffer
|
||||
@frame_buffer = BitArray.new
|
||||
end
|
||||
|
||||
def run( input )
|
||||
|
|
|
@ -12,14 +12,14 @@ module RplLang
|
|||
'Display',
|
||||
'( -- ) erase display',
|
||||
proc do
|
||||
initialize_display
|
||||
initialize_frame_buffer
|
||||
end )
|
||||
|
||||
@dictionary.add_word( ['display→', 'display->'],
|
||||
'Display',
|
||||
'( -- pict ) put current display state on stack',
|
||||
proc do
|
||||
@stack << @display # FIXME: RplPict type
|
||||
@stack << @frame_buffer # FIXME: RplPict type
|
||||
end )
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue