From 7d18102f3149be7d2123d8021d9a41fb805c5210 Mon Sep 17 00:00:00 2001 From: visionmercer <62051836+visionmercer@users.noreply.github.com> Date: Wed, 27 May 2026 11:11:55 +0200 Subject: [PATCH] readability --- pixler.bas | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) 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