all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: MS Windows double buffering
Date: Sat, 30 Apr 2022 13:41:25 +0800	[thread overview]
Message-ID: <87mtg3unzu.fsf@yahoo.com> (raw)
In-Reply-To: <87mtg4zhlg.fsf@yahoo.com> (Po Lu's message of "Fri, 29 Apr 2022 11:36:11 +0800")

Po Lu <luangruo@yahoo.com> writes:

> From ee8cc91559c04a4f21a1ad14ff5461453638145e Mon Sep 17 00:00:00 2001
> From: Po Lu <luangruo@yahoo.com>
> Date: Fri, 29 Apr 2022 11:33:41 +0800
> Subject: [PATCH] Implement double buffering on MS Windows
>
> * etc/NEWS: Announce changes.
> * src/w32fns.c (w32_set_inhibit_double_buffering): New function.
> (w32_wnd_proc):
> (Fx_create_frame):
> (w32_create_tip_frame): Set `inhibit-double-buffering' parameter.
> (w32_frame_parm_handlers): Add new handler.
>
> * src/w32term.c (w32_show_back_buffer):
> (w32_release_paint_buffer): New functions.
> (w32_frame_up_to_date): Show back buffer if applicable.
> (w32_buffer_flipping_unblocked_hook): New hook.
> (w32_scroll_run): Use BitBlt to scroll instead of window
> scrolling functions.
> (w32_scroll_bar_clear): Don't clear scroll bars when double
> buffered.
> (w32_read_socket): Flip buffers after reading input events in
> some cases.
> (w32_free_frame_resources): Free back buffer.
> (w32_create_terminal): Add new hook.
>
> * src/w32term.h (struct w32_output): New fields for handling
> back buffers.
> * src/w32xfns.c (select_palette): Fix indentation.
> (get_frame_dc, release_frame_dc): Return back buffer when
> appropriate and set dirty flag.

I fixed a few minor problems with this, synchronized parts of the tool
bar code with X to fix a bug, and installed the resulting changes, since
they seems to be working fine for me and eliminates all of the dreadful
flickering that was previously present on MS Windows.



  reply	other threads:[~2022-04-30  5:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <877d791thh.fsf.ref@yahoo.com>
2022-04-28  8:51 ` MS Windows double buffering Po Lu
2022-04-28  9:42   ` Eli Zaretskii
2022-04-28 12:45     ` Po Lu
2022-04-29  3:36       ` Po Lu
2022-04-30  5:41         ` Po Lu [this message]
2022-04-30  6:50           ` Eli Zaretskii
2022-04-30  7:46             ` Po Lu
2022-04-30  9:10               ` Eli Zaretskii
2022-04-30  9:55                 ` Po Lu
2022-04-30 10:23                   ` Eli Zaretskii
2022-04-30 10:33                     ` Po Lu
2022-04-30 10:55                       ` Eli Zaretskii
2022-04-30 11:01                         ` Po Lu
2022-04-30 11:32                           ` Eli Zaretskii
2022-04-30 11:54                             ` Po Lu
2022-05-03  8:23               ` Robert Pluim
2022-05-03  8:43                 ` Po Lu
2022-04-30 17:34             ` Ken Brown
2022-04-30 18:25               ` Eli Zaretskii
2022-05-01  0:35               ` Po Lu
2022-05-01 16:00               ` Arash Esbati
2022-05-01 16:07                 ` Eli Zaretskii
2022-05-01 16:11                   ` Arash Esbati

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtg3unzu.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.