Swap precision of individual operations
This commit is contained in:
parent
2f2c381d71
commit
afe0ed33ca
9
main.go
9
main.go
@ -242,6 +242,15 @@ func onPress (button stone.Button, modifiers stone.Modifiers) {
|
|||||||
redraw()
|
redraw()
|
||||||
application.Draw()
|
application.Draw()
|
||||||
|
|
||||||
|
case 'z':
|
||||||
|
switch selectedExpression.(type) {
|
||||||
|
case *Operation, nil:
|
||||||
|
operation := selectedExpression.(*Operation)
|
||||||
|
operation.floating = !operation.floating
|
||||||
|
}
|
||||||
|
redraw()
|
||||||
|
application.Draw()
|
||||||
|
|
||||||
case 'Z':
|
case 'Z':
|
||||||
showFloat = !showFloat
|
showFloat = !showFloat
|
||||||
redraw()
|
redraw()
|
||||||
|
Loading…
Reference in New Issue
Block a user