mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Simplified code
This commit is contained in:
		
							parent
							
								
									cac305f8d2
								
							
						
					
					
						commit
						5411263d92
					
				| 
						 | 
					@ -1216,9 +1216,7 @@ frompalette(Imaging imOut, Imaging imIn, const char *mode) {
 | 
				
			||||||
        convert = alpha ? pa2f : p2f;
 | 
					        convert = alpha ? pa2f : p2f;
 | 
				
			||||||
    } else if (strcmp(mode, "RGB") == 0) {
 | 
					    } else if (strcmp(mode, "RGB") == 0) {
 | 
				
			||||||
        convert = alpha ? pa2rgb : p2rgb;
 | 
					        convert = alpha ? pa2rgb : p2rgb;
 | 
				
			||||||
    } else if (strcmp(mode, "RGBA") == 0) {
 | 
					    } else if (strcmp(mode, "RGBA") == 0 || strcmp(mode, "RGBX") == 0) {
 | 
				
			||||||
        convert = alpha ? pa2rgba : p2rgba;
 | 
					 | 
				
			||||||
    } else if (strcmp(mode, "RGBX") == 0) {
 | 
					 | 
				
			||||||
        convert = alpha ? pa2rgba : p2rgba;
 | 
					        convert = alpha ? pa2rgba : p2rgba;
 | 
				
			||||||
    } else if (strcmp(mode, "CMYK") == 0) {
 | 
					    } else if (strcmp(mode, "CMYK") == 0) {
 | 
				
			||||||
        convert = alpha ? pa2cmyk : p2cmyk;
 | 
					        convert = alpha ? pa2cmyk : p2cmyk;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user