5IBMKPEPPANVH6EHHHKWBOQMM5FMTPRDZV36P7E7VK3QC4NJISLQC
MMAQ7TYFEUU3GFTCWVBBAVADRGWSQHWTWFS4BVR2VCNSUMZYKWEAC
J2DMH3IQU7KKKMKOG7NCUV2FDXW43CF2GFUXRTSYGGJ76MSY2TZQC
VUPGHZX5E3EN7757QF36AWOODSBQC4HZACRPZEDGCEOL7LELB4SQC
QZMNJNG23EUPL7MAAS3IMXP7PX6YXYNP3EUPPY7D6KKMK5F5V7VAC
R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC
KKMFQDR43ZWVCDRHQLWWX3FCWCFA3ZSXYOBRJNPHUQZR2XPKWULAC
TIYA6WCMQVCHD3OZQOAKFJSHB5MXEH6XM3DMTNWLVY5YRFRTJMAQC
MMKT36HLLK4XLKNNQRWDZTLYJ32LDI3KA7UGEOKJ5M5ZWIJFQXBAC
JOPVPUSAMMU6RFVDQR4NJC4GNNUFB7GPKVH7OS5FKCYS5QZ53VLQC
NFFIIQTC2B3E5Q4EJUTLZTPUUMU2S5LM7T2H2P2ENDS7H6XZNYRQC
KHPSHJN4BMTJ3CHUFQQZU7ZIQDOQDF3L5HV3TRT5OJMYICJAEB5QC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
source.initialize_window_geometry()
function source.initialize_window_geometry()
-- Initialize window width/height and make window resizable.
--
-- I get tempted to have opinions about window dimensions here, but they're
-- non-portable:
-- - maximizing doesn't work on mobile and messes things up
-- - maximizing keeps the title bar on screen in Linux, but off screen on
-- Windows. And there's no way to get the height of the title bar.
-- It seems more robust to just follow LÖVE's default window size until
-- someone overrides it.
App.screen.width, App.screen.height, App.screen.flags = App.screen.size()
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
source.initialize_window_geometry()
function source.initialize_window_geometry()
-- Initialize window width/height and make window resizable.
--
-- I get tempted to have opinions about window dimensions here, but they're
-- non-portable:
-- - maximizing doesn't work on mobile and messes things up
-- - maximizing keeps the title bar on screen in Linux, but off screen on
-- Windows. And there's no way to get the height of the title bar.
-- It seems more robust to just follow LÖVE's default window size until
-- someone overrides it.
App.screen.width, App.screen.height, App.screen.flags = App.screen.size()
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
run.initialize_window_geometry()
function run.initialize_window_geometry()
-- Initialize window width/height and make window resizable.
--
-- I get tempted to have opinions about window dimensions here, but they're
-- non-portable:
-- - maximizing doesn't work on mobile and messes things up
-- - maximizing keeps the title bar on screen in Linux, but off screen on
-- Windows. And there's no way to get the height of the title bar.
-- It seems more robust to just follow LÖVE's default window size until
-- someone overrides it.
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
Editor_state.font_height = font_height
Editor_state.line_height = math.floor(font_height*1.3)
run.initialize_window_geometry()
function run.initialize_window_geometry()
-- Initialize window width/height and make window resizable.
--
-- I get tempted to have opinions about window dimensions here, but they're
-- non-portable:
-- - maximizing doesn't work on mobile and messes things up
-- - maximizing keeps the title bar on screen in Linux, but off screen on
-- Windows. And there's no way to get the height of the title bar.
-- It seems more robust to just follow LÖVE's default window size until
-- someone overrides it.
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
Editor_state.font_height = font_height
Editor_state.line_height = math.floor(font_height*1.3)