]> git.eshelyaron.com Git - emacs.git/commit
Reinforce bitmap reconfiguration on Android
authorPo Lu <luangruo@yahoo.com>
Mon, 17 Jun 2024 09:43:24 +0000 (17:43 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 19 Jun 2024 08:40:34 +0000 (10:40 +0200)
commitafaeb15948770ad938fadf27e353fb6d4a339dd5
tree925250f65974380e6348eedde4ab1fc54499dcc7
parent9557e0fbac6de297c36cf2a44bf675aa12600b61
Reinforce bitmap reconfiguration on Android

* java/org/gnu/emacs/EmacsView.java (EmacsView) <unswapped>: New
field in which to record whether the back buffer has received
contents beyond those present at the last buffer swap.
<dimensionsLock>: Delete field.
(onAttachedToWindow, onLayout, handleDirtyBitmap)
(prepareForLayout): Rather, synchronize window dimensions with
the view.
(getCanvas, getBitmap): Do not reconfigure the back buffer
bitmap if such outstanding data exists.
(postSwapBuffers): New function.
(swapBuffers): If such outstanding data exists and the back
bufferis pending reconfiguration, recreate the back buffer and
report exposure.

* src/androidterm.c (handle_one_android_event): Fix indentation.

(cherry picked from commit 82f0014273193d27c71a1fcb9be778c85cfa5e65)
java/org/gnu/emacs/EmacsView.java
src/androidterm.c