]> git.eshelyaron.com Git - emacs.git/commit
Fix PNGs on macOS (bug#28176)
authorAlan Third <alan@idiocy.org>
Wed, 23 Aug 2017 18:53:23 +0000 (19:53 +0100)
committerAlan Third <alan@idiocy.org>
Wed, 23 Aug 2017 18:57:00 +0000 (19:57 +0100)
commit95130f192b7c00a118ce745efb94cd3d0aaabab0
treef75c4eaa2948f94f7e2b9c86e8ae6c6341621f0a
parent7baa50eca28ff21497b058fa22656bbb4a447d87
Fix PNGs on macOS (bug#28176)

* src/nsimage.m (ns_load_image): Remove index check.
(EmacsImage::getAnimatedBitmapImageRep): New function.
(EmacsImage::getMetadata): Use getAnimatedBitmapImageRep.
(EmacsImage::setFrame): Use getAnimatedBitmapImageRep and check index
is valid.
src/nsimage.m