mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	Fix scaling issue in draw_line and similar methods
				
					
				
			This commit is contained in:
		
							parent
							
								
									0f0b853c98
								
							
						
					
					
						commit
						a8cbb6245b
					
				
					 11 changed files with 44 additions and 40 deletions
				
			
		|  | @ -621,8 +621,8 @@ struct CanvasItemPlotCurve { | |||
| 			color2(p_color2) {} | ||||
| 
 | ||||
| 	void operator()(Vector2 pos0, Vector2 pos1, bool in_definition) { | ||||
| 		// FIXME: Using a line width greater than 1 breaks curve rendering
 | ||||
| 		ci.draw_line(pos0, pos1, in_definition ? color1 : color2, 1); | ||||
| 		// FIXME: Using a quad line breaks curve rendering.
 | ||||
| 		ci.draw_line(pos0, pos1, in_definition ? color1 : color2, -1); | ||||
| 	} | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Danil Alexeev
						Danil Alexeev