diff --git a/pixler.bas b/pixler.bas index ea71359..2e459a7 100644 --- a/pixler.bas +++ b/pixler.bas @@ -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