mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	LibGfx: Revert #2154 and properly handle simple polygons
The existing scanline method works just fine, and only needs the points to be available as floats. This commit reverts the complex polygon mitigation, and instead fixes the rasterization process to avoid generating complex polygons because of precision issues.
This commit is contained in:
		
							parent
							
								
									0f0d73d1b5
								
							
						
					
					
						commit
						88738aefa3
					
				
					 3 changed files with 5 additions and 187 deletions
				
			
		|  | @ -1154,7 +1154,7 @@ void Painter::stroke_path(const Path& path, Color color, int thickness) | |||
| 
 | ||||
| void Painter::fill_path(Path& path, Color color, WindingRule winding_rule) | ||||
| { | ||||
|     const auto& segments = path.split_lines(Path::Simple); | ||||
|     const auto& segments = path.split_lines(); | ||||
| 
 | ||||
|     if (segments.size() == 0) | ||||
|         return; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AnotherTest
						AnotherTest