pothi.love/0028-A

14 lines
526 B
Plaintext

A = function(preserve_screen_top_of_cursor_node)
-- print('A')
love.graphics.setFont(love.graphics.newFont(scale(20))) -- editor objects implicitly depend on current font
-- translate some page in Global_state to Surface
Surface = {}
if Global_state.thread == nil then
lay_out_file_picker()
else
compute_layout(Global_state.thread, 0,0, Surface, preserve_screen_top_of_cursor_node)
end
compute_viewport_bounds()
B(preserve_screen_top_of_cursor_node)
-- TODO: ugly that we're manipulating editor objects twice
end