aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidterm.c
diff options
context:
space:
mode:
authorPo Lu2023-06-21 10:31:05 +0800
committerPo Lu2023-06-21 10:31:05 +0800
commitbdaeecd1759e6aee5ad8bf04ba6ed9bb8fb4453d (patch)
treedca4856d9d14f0b4ffa7062e4ff235f46110fadb /src/androidterm.c
parent70cf0d7c6f39a53103cb3f6222cedb8345f5d920 (diff)
downloademacs-bdaeecd1759e6aee5ad8bf04ba6ed9bb8fb4453d.tar.gz
emacs-bdaeecd1759e6aee5ad8bf04ba6ed9bb8fb4453d.zip
Update Android port
* src/androidfns.c (android_set_tool_bar_position): (frame_geometry): * src/androidterm.c (android_flash): (android_clear_under_internal_border): Synchronize with X.
Diffstat (limited to 'src/androidterm.c')
-rw-r--r--src/androidterm.c30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/androidterm.c b/src/androidterm.c
index 29076981a47..aed8e24b9fa 100644
--- a/src/androidterm.c
+++ b/src/androidterm.c
@@ -181,7 +181,8 @@ android_flash (struct frame *f)
181 android_fill_rectangle (FRAME_ANDROID_DRAWABLE (f), gc, 181 android_fill_rectangle (FRAME_ANDROID_DRAWABLE (f), gc,
182 flash_left, 182 flash_left,
183 (height - flash_height 183 (height - flash_height
184 - FRAME_INTERNAL_BORDER_WIDTH (f)), 184 - FRAME_INTERNAL_BORDER_WIDTH (f)
185 - FRAME_BOTTOM_MARGIN_HEIGHT (f)),
185 width, flash_height); 186 width, flash_height);
186 187
187 } 188 }
@@ -234,7 +235,8 @@ android_flash (struct frame *f)
234 android_fill_rectangle (FRAME_ANDROID_DRAWABLE (f), gc, 235 android_fill_rectangle (FRAME_ANDROID_DRAWABLE (f), gc,
235 flash_left, 236 flash_left,
236 (height - flash_height 237 (height - flash_height
237 - FRAME_INTERNAL_BORDER_WIDTH (f)), 238 - FRAME_INTERNAL_BORDER_WIDTH (f)
239 - FRAME_BOTTOM_MARGIN_HEIGHT (f)),
238 width, flash_height); 240 width, flash_height);
239 } 241 }
240 else 242 else
@@ -4213,14 +4215,16 @@ android_clear_under_internal_border (struct frame *f)
4213 int width = FRAME_PIXEL_WIDTH (f); 4215 int width = FRAME_PIXEL_WIDTH (f);
4214 int height = FRAME_PIXEL_HEIGHT (f); 4216 int height = FRAME_PIXEL_HEIGHT (f);
4215 int margin = FRAME_TOP_MARGIN_HEIGHT (f); 4217 int margin = FRAME_TOP_MARGIN_HEIGHT (f);
4216 int face_id = 4218 int bottom_margin = FRAME_BOTTOM_MARGIN_HEIGHT (f);
4217 (FRAME_PARENT_FRAME (f) 4219 int face_id = (FRAME_PARENT_FRAME (f)
4218 ? (!NILP (Vface_remapping_alist) 4220 ? (!NILP (Vface_remapping_alist)
4219 ? lookup_basic_face (NULL, f, CHILD_FRAME_BORDER_FACE_ID) 4221 ? lookup_basic_face (NULL, f,
4220 : CHILD_FRAME_BORDER_FACE_ID) 4222 CHILD_FRAME_BORDER_FACE_ID)
4221 : (!NILP (Vface_remapping_alist) 4223 : CHILD_FRAME_BORDER_FACE_ID)
4222 ? lookup_basic_face (NULL, f, INTERNAL_BORDER_FACE_ID) 4224 : (!NILP (Vface_remapping_alist)
4223 : INTERNAL_BORDER_FACE_ID)); 4225 ? lookup_basic_face (NULL, f,
4226 INTERNAL_BORDER_FACE_ID)
4227 : INTERNAL_BORDER_FACE_ID));
4224 struct face *face = FACE_FROM_ID_OR_NULL (f, face_id); 4228 struct face *face = FACE_FROM_ID_OR_NULL (f, face_id);
4225 4229
4226 if (face) 4230 if (face)
@@ -4236,7 +4240,8 @@ android_clear_under_internal_border (struct frame *f)
4236 android_fill_rectangle (FRAME_ANDROID_DRAWABLE (f), gc, width - border, 4240 android_fill_rectangle (FRAME_ANDROID_DRAWABLE (f), gc, width - border,
4237 0, border, height); 4241 0, border, height);
4238 android_fill_rectangle (FRAME_ANDROID_DRAWABLE (f), gc, 0, 4242 android_fill_rectangle (FRAME_ANDROID_DRAWABLE (f), gc, 0,
4239 height - border, width, border); 4243 height - bottom_margin - border,
4244 width, border);
4240 android_set_foreground (gc, FRAME_FOREGROUND_PIXEL (f)); 4245 android_set_foreground (gc, FRAME_FOREGROUND_PIXEL (f));
4241 } 4246 }
4242 else 4247 else
@@ -4248,7 +4253,8 @@ android_clear_under_internal_border (struct frame *f)
4248 android_clear_area (FRAME_ANDROID_DRAWABLE (f), width - border, 4253 android_clear_area (FRAME_ANDROID_DRAWABLE (f), width - border,
4249 0, border, height); 4254 0, border, height);
4250 android_clear_area (FRAME_ANDROID_DRAWABLE (f), 0, 4255 android_clear_area (FRAME_ANDROID_DRAWABLE (f), 0,
4251 height - border, width, border); 4256 height - bottom_margin - border,
4257 width, border);
4252 } 4258 }
4253 } 4259 }
4254} 4260}