mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:22:44 +00:00 
			
		
		
		
	LibGfx: Remove unnecessary assertion in Painter::draw_pixel()
This commit is contained in:
		
							parent
							
								
									eabbe03b97
								
							
						
					
					
						commit
						acb87cd164
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		|  | @ -1157,7 +1157,6 @@ ALWAYS_INLINE void Painter::fill_scanline_with_draw_op(int y, int x, int width, | |||
| 
 | ||||
| void Painter::draw_pixel(const IntPoint& position, Color color, int thickness) | ||||
| { | ||||
|     ASSERT(draw_op() == DrawOp::Copy); | ||||
|     if (thickness == 1) | ||||
|         return set_pixel_with_draw_op(m_target->scanline(position.y())[position.x()], color); | ||||
|     IntRect rect { position.translated(-(thickness / 2), -(thickness / 2)), { thickness, thickness } }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling