Simplified code

This commit is contained in:
Andrew Murray 2025-09-05 20:00:04 +10:00
parent ba04d58851
commit 476b122ae4

View File

@ -17,7 +17,7 @@
# #
from __future__ import annotations from __future__ import annotations
from . import BmpImagePlugin, Image, ImageFile from . import BmpImagePlugin, Image
from ._binary import i16le as i16 from ._binary import i16le as i16
from ._binary import i32le as i32 from ._binary import i32le as i32
@ -63,8 +63,7 @@ class CurImageFile(BmpImagePlugin.BmpImageFile):
# patch up the bitmap height # patch up the bitmap height
self._size = self.size[0], self.size[1] // 2 self._size = self.size[0], self.size[1] // 2
d, e, o, a = self.tile[0] self.tile = [self.tile[0]._replace(extents=(0, 0) + self.size)]
self.tile[0] = ImageFile._Tile(d, (0, 0) + self.size, o, a)
# #