drop an unused arg
This commit is contained in:
parent
bca7f82598
commit
52ba030eaa
4
run.lua
4
run.lua
|
@ -80,14 +80,14 @@ end
|
||||||
function run.initialize_default_settings()
|
function run.initialize_default_settings()
|
||||||
local font_height = 20
|
local font_height = 20
|
||||||
love.graphics.setFont(love.graphics.newFont(font_height))
|
love.graphics.setFont(love.graphics.newFont(font_height))
|
||||||
run.initialize_window_geometry(App.width('m'))
|
run.initialize_window_geometry()
|
||||||
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
|
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
|
||||||
Editor_state.font_height = font_height
|
Editor_state.font_height = font_height
|
||||||
Editor_state.line_height = math.floor(font_height*1.3)
|
Editor_state.line_height = math.floor(font_height*1.3)
|
||||||
Settings = run.settings()
|
Settings = run.settings()
|
||||||
end
|
end
|
||||||
|
|
||||||
function run.initialize_window_geometry(em_width)
|
function run.initialize_window_geometry()
|
||||||
-- Initialize window width/height and make window resizable.
|
-- Initialize window width/height and make window resizable.
|
||||||
--
|
--
|
||||||
-- I get tempted to have opinions about window dimensions here, but they're
|
-- I get tempted to have opinions about window dimensions here, but they're
|
||||||
|
|
|
@ -159,14 +159,14 @@ end
|
||||||
function source.initialize_default_settings()
|
function source.initialize_default_settings()
|
||||||
local font_height = 20
|
local font_height = 20
|
||||||
love.graphics.setFont(love.graphics.newFont(font_height))
|
love.graphics.setFont(love.graphics.newFont(font_height))
|
||||||
source.initialize_window_geometry(App.width('m'))
|
source.initialize_window_geometry()
|
||||||
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
|
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
|
||||||
Editor_state.filename = 'run.lua'
|
Editor_state.filename = 'run.lua'
|
||||||
Editor_state.font_height = font_height
|
Editor_state.font_height = font_height
|
||||||
Editor_state.line_height = math.floor(font_height*1.3)
|
Editor_state.line_height = math.floor(font_height*1.3)
|
||||||
end
|
end
|
||||||
|
|
||||||
function source.initialize_window_geometry(em_width)
|
function source.initialize_window_geometry()
|
||||||
-- Initialize window width/height and make window resizable.
|
-- Initialize window width/height and make window resizable.
|
||||||
--
|
--
|
||||||
-- I get tempted to have opinions about window dimensions here, but they're
|
-- I get tempted to have opinions about window dimensions here, but they're
|
||||||
|
|
Loading…
Reference in New Issue
Block a user