Fix the additional four spaces to two spaces in the indent

This commit is contained in:
Daniel Rocha 2021-08-27 20:12:09 -03:00 committed by Francesco Abbate
parent dac3a9cba5
commit 49ec7c88e8
1 changed files with 11 additions and 11 deletions

View File

@ -81,25 +81,25 @@ function RootView:on_mouse_wheel(d, ...)
end end
local function res_scale() local function res_scale()
scale_level = 0 scale_level = 0
set_scale(default_scale) set_scale(default_scale)
end end
local function inc_scale() local function inc_scale()
scale_level = scale_level + 1 scale_level = scale_level + 1
set_scale(default_scale + scale_level * scale_steps) set_scale(default_scale + scale_level * scale_steps)
end end
local function dec_scale() local function dec_scale()
local new_scale_level = default_scale + (scale_level - 1) * scale_steps local new_scale_level = default_scale + (scale_level - 1) * scale_steps
if new_scale_level < MIN_SCALE then if new_scale_level < MIN_SCALE then
set_scale(MIN_SCALE) set_scale(MIN_SCALE)
return return
end end
scale_level = scale_level - 1 scale_level = scale_level - 1
set_scale(default_scale + scale_level * scale_steps) set_scale(default_scale + scale_level * scale_steps)
end end