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() | ||||
| 		application.Draw() | ||||
| 
 | ||||
| 	case 'z': | ||||
| 		switch selectedExpression.(type) { | ||||
| 		case *Operation, nil: | ||||
| 			operation := selectedExpression.(*Operation) | ||||
| 			operation.floating = !operation.floating | ||||
| 		} | ||||
| 		redraw() | ||||
| 		application.Draw() | ||||
| 
 | ||||
| 	case 'Z': | ||||
| 		showFloat = !showFloat | ||||
| 		redraw() | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user