diff options
author | Po Lu <luangruo@yahoo.com> | 2024-05-02 11:31:37 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2024-05-02 11:31:37 +0800 |
commit | b84fa71f8985284560bacda7d407e3559583844f (patch) | |
tree | d7ed4518760fe51795dce384bc9dfa0b4ed32faf /src/androidterm.c | |
parent | d3e95fcae9078a0ea8fcb15a4aee417e6e546ee5 (diff) | |
download | emacs-b84fa71f8985284560bacda7d407e3559583844f.tar.gz |
Port visible bell to Android
* java/org/gnu/emacs/EmacsDrawRectangle.java (perform): Ignore
GC_INVERT.
* java/org/gnu/emacs/EmacsFillRectangle.java
(EmacsFillRectangle) <invertFilter>: New variable.
(perform): If the transfer mode is invert, copy the source
to itself with invertFilter as the color filter.
* java/org/gnu/emacs/EmacsGC.java (EmacsGC) <xorAlu, srcInAlu>:
Delete now-redundant ALUs.
(markDirty): Cease updating the paint's transfermode.
* java/org/gnu/emacs/EmacsSafThread.java (openDocument1): Fix
typo in documentation.
* src/android.c (android_blit_xor): Delete unused function.
(android_copy_area): Remove calls to unused blit functions.
* src/androidgui.h (enum android_gc_function): Rename XOR to
INVERT.
* src/androidterm.c (android_flash): Replace with GXinvert.
Diffstat (limited to 'src/androidterm.c')
-rw-r--r-- | src/androidterm.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/androidterm.c b/src/androidterm.c index f849f0d9919..2979e5c1401 100644 --- a/src/androidterm.c +++ b/src/androidterm.c @@ -151,14 +151,8 @@ android_flash (struct frame *f) fd_set fds; block_input (); - - values.function = ANDROID_GC_XOR; - values.foreground = (FRAME_FOREGROUND_PIXEL (f) - ^ FRAME_BACKGROUND_PIXEL (f)); - - gc = android_create_gc ((ANDROID_GC_FUNCTION - | ANDROID_GC_FOREGROUND), - &values); + values.function = ANDROID_GC_INVERT; + gc = android_create_gc (ANDROID_GC_FUNCTION, &values); /* Get the height not including a menu bar widget. */ int height = FRAME_PIXEL_HEIGHT (f); |