readability

This commit is contained in:
visionmercer 2026-05-27 11:11:55 +02:00
commit 7d18102f31

View file

@ -120,12 +120,24 @@ do
' Keyboarding
keyin=inkey$
select case keyin
case "+":state.brushsize=state.brushsize+1:addcommand"brushsize ("+tst(state.brushsize)+")"
case "-":if state.brushsize>1 then state.brushsize=state.brushsize-1:addcommand"brushsize ("+tst(state.brushsize)+")"
case "h":state.zoom=1:state.offsetx=(_width/2)-(_width(layers(0).ihandle)/2):state.offsety=(_height/2)-(_height(layers(0).ihandle)/2)
case "t":showtoolbox=not showtoolbox
case "c":showcolorpicker=not showcolorpicker
case "l":showcommands=not showcommands
case "+"
state.brushsize=state.brushsize+1
addcommand"brushsize ("+tst(state.brushsize)+")"
case "-"
if state.brushsize>1 then
state.brushsize=state.brushsize-1
addcommand"brushsize ("+tst(state.brushsize)+")"
end if
case "h"
state.zoom=1
state.offsetx=(_width/2)-(_width(layers(0).ihandle)/2)
state.offsety=(_height/2)-(_height(layers(0).ihandle)/2)
case "t"
showtoolbox=not showtoolbox
case "c"
showcolorpicker=not showcolorpicker
case "l"
showcommands=not showcommands
end select
' 4. Draw everything using the freshly updated math