]> git.eshelyaron.com Git - emacs.git/commit
Use CGImage instead of NSBitmapImageRep (bug#32932)
authorAlan Third <alan@idiocy.org>
Sat, 1 Feb 2020 21:17:29 +0000 (21:17 +0000)
committerAlan Third <alan@idiocy.org>
Thu, 13 Feb 2020 18:26:20 +0000 (18:26 +0000)
commit44298ea6aa006ed227e539b02279bd3fc11fd2a6
treec6381b6fecb47fa8751662535e42f1727fc7945b
parenta13d1f953980b516470d03ab23250760c581c05b
Use CGImage instead of NSBitmapImageRep (bug#32932)

* src/nsterm.m (ns_update_end):
(ns_clear_frame): Remove forced draws.
(ns_draw_fringe_bitmap):
(ns_dumpglyphs_image): No longer need to invert images as the context
is already flipped.
([EmacsView updateFrameSize:]):
([EmacsView initFrameFromEmacs:]): Use new function.
([EmacsView createDrawingBuffer]): Replaces createDrawingBufferWithRect:.
([EmacsView focusOnDrawingBuffer]): Set CGImage context.
([EmacsView windowDidChangeBackingProperties:]): Use new function.
([EmacsView copyRect:to:]): Copy using CGImages.
([EmacsView wantsUpdateLayer]):
([EmacsView updateLayer]): New Functions.
([EmacsView drawRect:]): We no longer do anything special here for
Cocoa.
([EmacsView windowDidChangeBackingProperties:]): Fix indentation and
add NSTRACE.
src/nsterm.h
src/nsterm.m