]> git.eshelyaron.com Git - emacs.git/commit
Adjustments to double buffering on MS Windows
authorPo Lu <luangruo@yahoo.com>
Sat, 30 Apr 2022 07:49:06 +0000 (15:49 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 30 Apr 2022 07:52:12 +0000 (15:52 +0800)
commit1321b5989c9a8046ce40b8edf23e3e471d2b334a
treedcbb39190bdaedb41a956caedda949020773d11c
parent1648791e7c828ce8ced69976e4d88430bf284cf8
Adjustments to double buffering on MS Windows

* src/w32fns.c (w32_set_inhibit_double_buffering): Add comment
describing double buffering.
(w32_wnd_proc): Respect `w32-disable-double-buffering'.
(globals_of_w32fns): New variable
`w32-disable-double-buffering'.

* src/w32term.c (w32_show_back_buffer): Return immediately if
double buffering is disabled on the frame.
(w32_scroll_run): Use old scrolling code if
`w32-disable-double-buffering' is enabled.
(w32_scroll_bar_clear): Document why we don't clear scroll bars
when double buffering is enabled.
(w32_read_socket): Respect `w32-disable-double-buffering' and
clean up some code.

* src/w32xfns.c (get_frame_dc): Respect
`w32-disable-double-buffering'.
src/w32fns.c
src/w32term.c
src/w32xfns.c