10 lines
495 B
Plaintext
10 lines
495 B
Plaintext
A = function(preserve_screen_top_of_cursor_node)
|
|
-- translate Page to Surface
|
|
while #Surface > 3 do table.remove(Surface) end -- HACK
|
|
table.insert(Surface, {type='line', data={0,0, 6000,1000}, r=1,g=0,b=0})
|
|
table.insert(Surface, {type='line', data={0,1, 6000,1001}, r=1,g=0,b=0})
|
|
compute_layout(Page, Page.x,Page.y, Surface, preserve_screen_top_of_cursor_node)
|
|
-- continue the pipeline
|
|
B(preserve_screen_top_of_cursor_node)
|
|
-- TODO: ugly that we're manipulating editor objects twice
|
|
end |