diff options
author | Alan Third <address@hidden> | 2019-02-10 10:59:29 +0000 |
---|---|---|
committer | Alan Third <alan@idiocy.org> | 2020-01-24 16:05:42 +0000 |
commit | f674c905dc98a4617c40c4bc115462b4ad2ebfc2 (patch) | |
tree | 7c75bab5bdc5f04f73f8f254eb0a76a54ca2e0b1 /test/lisp/ls-lisp-tests.el | |
parent | 3ad7813296760cecfd3fd35a5fb47930d61a573d (diff) | |
download | emacs-f674c905dc98a4617c40c4bc115462b4ad2ebfc2.tar.gz emacs-f674c905dc98a4617c40c4bc115462b4ad2ebfc2.tar.bz2 emacs-f674c905dc98a4617c40c4bc115462b4ad2ebfc2.zip |
Draw to offscreen buffer on macOS
* src/nsfns.m (x_set_background_color): Clear the frame after changing
the background color, not before.
* src/nsterm.h (drawingBuffer): New variable.
([EmacsView focusOnDrawingBuffer]):
([EmacsView copyRect:to:]):
([EmacsView createDrawingBufferWithRect:]): New methods.
* src/nsterm.m (ns_update_begin):
(ns_update_end):
(ns_focus):
(ns_unfocus): Handle drawing to offscreen buffer.
(ns_clip_to_row): Use ns_row_rect.
(ns_copy_bits): Remove unused function.
(ns_scroll_run):
(ns_shift_glyphs_for_insert): Use new scrolling method.
(ns_draw_fringe_bitmap):
(ns_dumpglyphs_image): When drawing to the offscreen buffer, flip
images so they appear the right way up.
(ns_dumpglyphs_stretch): Remove unnecessary code.
(ns_draw_window_cursor): Don't disable screen updates.
([EmacsView updateFrameSize:]): Update the size of the offscreen
buffer.
([EmacsView initFrameFromEmacs:]): Create offscreen buffer.
([EmacsView windowDidChangeBackingProperties:]):
([EmacsView createDrawingBufferWithRect:]):
([EmacsView focusOnDrawingBuffer]):
([EmacsView copyRect]): New methods.
([EmacsView viewWillDraw]): Remove method as it no longer does
anything useful.
([EmacsView drawRect:]): Handle drawing from offscreen buffer.
Diffstat (limited to 'test/lisp/ls-lisp-tests.el')
0 files changed, 0 insertions, 0 deletions