mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-23 11:34:14 +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
0c1ff743b6
commit
bac4ae4c42
|
@ -146,10 +146,10 @@ class CurFile(IcoImagePlugin.IcoFile):
|
||||||
icon_header["dim"] = (icon_header["width"], icon_header["height"])
|
icon_header["dim"] = (icon_header["width"], icon_header["height"])
|
||||||
icon_header["square"] = icon_header["width"] * icon_header["height"]
|
icon_header["square"] = icon_header["width"] * icon_header["height"]
|
||||||
|
|
||||||
# TODO: This needs further investigation. Cursor files do not really
|
# TODO: This needs further investigation. Cursor files do not really
|
||||||
# specify their bpp like ICO's as those bits are used for the y_hotspot.
|
# specify their bpp like ICO's as those bits are used for the y_hotspot.
|
||||||
# For now, bpp is calculated by subtracting the AND mask (equal to number
|
# For now, bpp is calculated by subtracting the AND mask (equal to number
|
||||||
# of pixels * 1bpp) and dividing by the number of pixels. This seems
|
# of pixels * 1bpp) and dividing by the number of pixels. This seems
|
||||||
# to work well so far.
|
# to work well so far.
|
||||||
BITMAP_INFO_HEADER_SIZE = 40
|
BITMAP_INFO_HEADER_SIZE = 40
|
||||||
bpp_without_and = (
|
bpp_without_and = (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user