mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:32:45 +00:00 
			
		
		
		
	LibGfx: Remove try_ prefix from bitmap creation functions
				
					
				
			Those don't have any non-try counterpart, so we might as well just omit it.
This commit is contained in:
		
							parent
							
								
									1971bff314
								
							
						
					
					
						commit
						82a152b696
					
				
					 186 changed files with 598 additions and 598 deletions
				
			
		|  | @ -207,7 +207,7 @@ ErrorOr<void> MoveTool::update_cached_preview_bitmap(Layer const* layer) | |||
|     auto const& source_bitmap = layer->content_bitmap(); | ||||
|     auto preview_bitmap_size = editor_rect_size.contains(source_bitmap.size()) ? source_bitmap.size() : editor_rect_size; | ||||
| 
 | ||||
|     m_cached_preview_bitmap = TRY(Gfx::Bitmap::try_create(source_bitmap.format(), preview_bitmap_size)); | ||||
|     m_cached_preview_bitmap = TRY(Gfx::Bitmap::create(source_bitmap.format(), preview_bitmap_size)); | ||||
|     GUI::Painter preview_painter(*m_cached_preview_bitmap); | ||||
|     preview_painter.draw_scaled_bitmap(m_cached_preview_bitmap->rect(), source_bitmap, source_bitmap.rect(), 0.8f, Gfx::Painter::ScalingMode::BilinearBlend); | ||||
|     Gfx::ContrastFilter preview_filter(0.5f); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Schumacher
						Tim Schumacher