mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:32:45 +00:00 
			
		
		
		
	LibGfx: Avoid rounding/truncating glyph positions till blitting
This keeps some overloads that accept ints to avoid adding calls to .to_type<float>() all over the place.
This commit is contained in:
		
							parent
							
								
									68f678f566
								
							
						
					
					
						commit
						a1726b1ba5
					
				
					 14 changed files with 172 additions and 106 deletions
				
			
		|  | @ -32,7 +32,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget() | |||
|         m_network_link_down_bitmap = Gfx::Bitmap::try_create(m_network_connected_bitmap->format(), m_network_connected_bitmap->size()).release_value_but_fixme_should_propagate_errors(); | ||||
|         { | ||||
|             Gfx::Painter painter(*m_network_link_down_bitmap); | ||||
|             painter.blit_filtered({}, *m_network_connected_bitmap, m_network_connected_bitmap->rect(), [](Color color) { | ||||
|             painter.blit_filtered(Gfx::IntPoint {}, *m_network_connected_bitmap, m_network_connected_bitmap->rect(), [](Color color) { | ||||
|                 return color.to_grayscale(); | ||||
|             }); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 MacDue
						MacDue