mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:12:43 +00:00 
			
		
		
		
	LibWeb: Transform the default path in CRC2D#fill(CanvasFillRule)
Required by Factory Balls Forever to position anything that isn't an image.
This commit is contained in:
		
							parent
							
								
									b97229c9b5
								
							
						
					
					
						commit
						cb62ffbb8a
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -288,7 +288,8 @@ void CanvasRenderingContext2D::fill_internal(Gfx::Path& path, DeprecatedString c | |||
| 
 | ||||
| void CanvasRenderingContext2D::fill(DeprecatedString const& fill_rule) | ||||
| { | ||||
|     return fill_internal(path(), fill_rule); | ||||
|     auto transformed_path = path().copy_transformed(drawing_state().transform); | ||||
|     return fill_internal(transformed_path, fill_rule); | ||||
| } | ||||
| 
 | ||||
| void CanvasRenderingContext2D::fill(Path2D& path, DeprecatedString const& fill_rule) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Luke Wilde
						Luke Wilde