mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
		
							parent
							
								
									69b4ebf89b
								
							
						
					
					
						commit
						1d846c2807
					
				|  | @ -150,7 +150,6 @@ class CurFile(IcoImagePlugin.IcoFile): | |||
|                 if not icon_header[j]: | ||||
|                     icon_header[j] = 256 | ||||
| 
 | ||||
|             | ||||
|             icon_header["dim"] = (icon_header["width"], icon_header["height"]) | ||||
|             icon_header["square"] = icon_header["width"] * icon_header["height"] | ||||
| 
 | ||||
|  | @ -159,7 +158,9 @@ class CurFile(IcoImagePlugin.IcoFile): | |||
|             # subtracting the AND mask (equal to number of pixels * 1bpp) and dividing by the number | ||||
|             # of pixels. | ||||
|             BITMAP_INFO_HEADER_SIZE = 40 | ||||
|             icon_header["bpp"] = (icon_header["size"] - BITMAP_INFO_HEADER_SIZE) * 8 - (icon_header["square"]) // icon_header["square"] | ||||
|             icon_header["bpp"] = (icon_header["size"] - BITMAP_INFO_HEADER_SIZE) * 8 - ( | ||||
|                 icon_header["square"] | ||||
|             ) // icon_header["square"] | ||||
| 
 | ||||
|             self.entry.append(icon_header) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user