]> git.eshelyaron.com Git - emacs.git/commit
Allow dynamic choice of drawing path on NS (bug#39883)
authorAlan Third <alan@idiocy.org>
Sat, 11 Apr 2020 13:18:39 +0000 (14:18 +0100)
committerAlan Third <alan@idiocy.org>
Thu, 16 Apr 2020 18:11:05 +0000 (19:11 +0100)
commitc019f03e38850b3ba3a2bcbcc84960d5b8d9663f
tree7f1ab25650ae0aa954d6079a827ef7d5c7552bbe
parent24cb6908d70c14792c686679cb08091447b9c3b1
Allow dynamic choice of drawing path on NS (bug#39883)

* src/nsterm.h (NS_DRAW_TO_BUFFER): Let this be enabled on versions
older than 10.14.
* src/nsterm.m (ns_update_begin):
(ns_update_end):
(ns_focus):
(ns_unfocus):
([EmacsView viewDidResize:]):
([EmacsView createDrawingBuffer]):
([EmacsView windowDidChangeBackingProperties:]):
([EmacsView copyRect:to:]):
([EmacsView wantsUpdateLayer]): Dynamically switch between drawing to a
buffer and drawing to the screen, depending on the version of AppKit
in use.
([EmacsView dealloc]): We can't release the context unless
NS_DRAW_TO_BUFFER is defined.
src/nsterm.h
src/nsterm.m