mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52: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
				
			
		|  | @ -22,7 +22,7 @@ static Optional<Web::Platform::DecodedImage> decode_image_with_qt(ReadonlyBytes | |||
|     if (image.isNull()) | ||||
|         return {}; | ||||
|     image = image.convertToFormat(QImage::Format::Format_ARGB32); | ||||
|     auto bitmap = MUST(Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRA8888, Gfx::IntSize(image.width(), image.height()))); | ||||
|     auto bitmap = MUST(Gfx::Bitmap::create(Gfx::BitmapFormat::BGRA8888, Gfx::IntSize(image.width(), image.height()))); | ||||
|     for (int y = 0; y < image.height(); ++y) { | ||||
|         memcpy(bitmap->scanline_u8(y), image.scanLine(y), image.width() * 4); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Schumacher
						Tim Schumacher