aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidterm.c
diff options
context:
space:
mode:
authorPo Lu2024-06-17 17:43:24 +0800
committerPo Lu2024-06-17 17:45:48 +0800
commit82f0014273193d27c71a1fcb9be778c85cfa5e65 (patch)
tree62792993251680cebe47bf1d50775a1f4e8a8d46 /src/androidterm.c
parent6aa5068ac71cb1b8e46c299138f99fea44319146 (diff)
downloademacs-82f0014273193d27c71a1fcb9be778c85cfa5e65.tar.gz
emacs-82f0014273193d27c71a1fcb9be778c85cfa5e65.zip
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.
Diffstat (limited to 'src/androidterm.c')
-rw-r--r--src/androidterm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/androidterm.c b/src/androidterm.c
index 730c832bb5b..837cc50bfa1 100644
--- a/src/androidterm.c
+++ b/src/androidterm.c
@@ -926,11 +926,11 @@ handle_one_android_event (struct android_display_info *dpyinfo,
926 XSETFRAME (inev.ie.frame_or_window, f); 926 XSETFRAME (inev.ie.frame_or_window, f);
927 } 927 }
928 928
929 if (f && FRAME_OUTPUT_DATA (f)->need_cursor_updates) 929 if (f && FRAME_OUTPUT_DATA (f)->need_cursor_updates)
930 { 930 {
931 w = XWINDOW (f->selected_window); 931 w = XWINDOW (f->selected_window);
932 android_set_preeditarea (w, w->cursor.x, w->cursor.y); 932 android_set_preeditarea (w, w->cursor.x, w->cursor.y);
933 } 933 }
934 } 934 }
935 935
936 goto OTHER; 936 goto OTHER;