mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:12:43 +00:00 
			
		
		
		
	LibGfx: Remove indexed palette formats from Bitmap and Painter
Nobody was actually using these formats anymore, and this simplifies and shrinks the code. :^)
This commit is contained in:
		
							parent
							
								
									bcbaad0b1d
								
							
						
					
					
						commit
						a396bb0c0b
					
				
					 10 changed files with 17 additions and 203 deletions
				
			
		|  | @ -71,11 +71,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
|     if (move_alpha_to_rgb) { | ||||
|         switch (frame->format()) { | ||||
|         case Gfx::BitmapFormat::Invalid: | ||||
|         case Gfx::BitmapFormat::Indexed1: | ||||
|         case Gfx::BitmapFormat::Indexed2: | ||||
|         case Gfx::BitmapFormat::Indexed4: | ||||
|         case Gfx::BitmapFormat::Indexed8: | ||||
|             warnln("Can't --strip-alpha with indexed or invalid bitmaps"); | ||||
|             warnln("Can't --strip-alpha with invalid bitmaps"); | ||||
|             return 1; | ||||
|         case Gfx::BitmapFormat::RGBA8888: | ||||
|             // No image decoder currently produces bitmaps with this format.
 | ||||
|  | @ -96,11 +92,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
|     if (strip_alpha) { | ||||
|         switch (frame->format()) { | ||||
|         case Gfx::BitmapFormat::Invalid: | ||||
|         case Gfx::BitmapFormat::Indexed1: | ||||
|         case Gfx::BitmapFormat::Indexed2: | ||||
|         case Gfx::BitmapFormat::Indexed4: | ||||
|         case Gfx::BitmapFormat::Indexed8: | ||||
|             warnln("Can't --strip-alpha with indexed or invalid bitmaps"); | ||||
|             warnln("Can't --strip-alpha with invalid bitmaps"); | ||||
|             return 1; | ||||
|         case Gfx::BitmapFormat::RGBA8888: | ||||
|             // No image decoder currently produces bitmaps with this format.
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling