From fc6b602342beba3dc9ebef8748470018be6652a8 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 13 Jul 2022 23:29:48 -0700 Subject: bugfix: zoom in/out hotkeys Broken since commit 3b36093553 5 hours ago. --- main.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main.lua') diff --git a/main.lua b/main.lua index 0164a7a..a15ab41 100644 --- a/main.lua +++ b/main.lua @@ -128,6 +128,13 @@ function App.resize(w, h) Last_resize_time = App.getTime() end +function initialize_font_settings(font_height) + Editor_state.font_height = font_height + love.graphics.setFont(love.graphics.newFont(Editor_state.font_height)) + Editor_state.line_height = math.floor(font_height*1.3) + Editor_state.em = App.newText(love.graphics.getFont(), 'm') +end + function App.filedropped(file) -- first make sure to save edits on any existing file if Editor_state.next_save then -- cgit 1.4.1-2-gfad0 group label='branches'> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/cpp/.traces/include_nonderef_properties
blob: b7f103fc391d8fbc386239c892cbfc0caf1b5cc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36