respect zoom when drawing drawings
This commit is contained in:
parent
2194b388f8
commit
8446ec0fbb
4
main.lua
4
main.lua
|
@ -598,9 +598,13 @@ function keychord_pressed(chord)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif chord == 'C-=' then
|
elseif chord == 'C-=' then
|
||||||
|
drawingw = drawingw/zoom
|
||||||
zoom = zoom+0.5
|
zoom = zoom+0.5
|
||||||
|
drawingw = drawingw*zoom
|
||||||
elseif chord == 'C--' then
|
elseif chord == 'C--' then
|
||||||
|
drawingw = drawingw/zoom
|
||||||
zoom = zoom-0.5
|
zoom = zoom-0.5
|
||||||
|
drawingw = drawingw*zoom
|
||||||
-- shortcuts for drawings
|
-- shortcuts for drawings
|
||||||
elseif chord == 'escape' and love.mouse.isDown('1') then
|
elseif chord == 'escape' and love.mouse.isDown('1') then
|
||||||
local drawing = current_drawing()
|
local drawing = current_drawing()
|
||||||
|
|
Loading…
Reference in New Issue