[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2d173aa3d34: Fix a number of Android compilation warnings
From: |
Po Lu |
Subject: |
master 2d173aa3d34: Fix a number of Android compilation warnings |
Date: |
Fri, 20 Dec 2024 19:53:59 -0500 (EST) |
branch: master
commit 2d173aa3d34e60206f4889eb0220aa2269b3ed4d
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix a number of Android compilation warnings
* src/dispnew.c (frame_rect_abs, frame_pos_abs, rect_intersect)
(copy_child_glyphs, abs_cursor_pos, is_in_matrix)
(is_cursor_obscured) [HAVE_ANDROID]: Delete functions.
---
src/dispnew.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/dispnew.c b/src/dispnew.c
index c252781b235..a3c02742082 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -3288,6 +3288,8 @@ struct rect
int x, y, w, h;
};
+#ifndef HAVE_ANDROID
+
/* Compute the intersection of R1 and R2 in R. Value is true if R1 and
R2 intersect, false otherwise. */
@@ -3330,6 +3332,8 @@ frame_rect_abs (struct frame *f)
return (struct rect) { x, y, f->total_cols, f->total_lines };
}
+#endif /* !HAVE_ANDROID */
+
/* Return the root frame of frame F. Follow the parent_frame chain
until we reach a frame that has no parent. That is the root frame.
Note that the root of a root frame is itself. */
@@ -3512,6 +3516,8 @@ make_matrix_current (struct frame *f)
make_current (f, NULL, i);
}
+#ifndef HAVE_ANDROID
+
/* Prepare ROOT's desired row at index Y for copying child frame
contents to it. Value is the prepared desired row or NULL if we
don't have, and can't contruct a desired row. */
@@ -3745,6 +3751,8 @@ copy_child_glyphs (struct frame *root, struct frame
*child)
}
}
+#endif /* !HAVE_ANDROID */
+
/***********************************************************************
Frame Update
***********************************************************************/
@@ -3837,6 +3845,8 @@ update_tty_frame (struct frame *f)
build_frame_matrix (f);
}
+#ifndef HAVE_ANDROID
+
/* Return the cursor position of the selected window of frame F, in
absolute coordinates in *X and *Y. Note that if F is a child frame,
its cursor may be clipped, i.e. outside of the bounds of the terminal
@@ -3903,8 +3913,6 @@ is_cursor_obscured (void)
return cursor_glyph->frame != SELECTED_FRAME ();
}
-#ifndef HAVE_ANDROID
-
/* Decide where to show the cursor, and whether to hide it.
This works very well for Vertico-Posframe, Transient-Posframe and
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 2d173aa3d34: Fix a number of Android compilation warnings,
Po Lu <=