diff options
| author | Po Lu | 2024-05-02 11:31:37 +0800 |
|---|---|---|
| committer | Po Lu | 2024-05-02 11:31:37 +0800 |
| commit | b84fa71f8985284560bacda7d407e3559583844f (patch) | |
| tree | d7ed4518760fe51795dce384bc9dfa0b4ed32faf /src/androidterm.c | |
| parent | d3e95fcae9078a0ea8fcb15a4aee417e6e546ee5 (diff) | |
| download | emacs-b84fa71f8985284560bacda7d407e3559583844f.tar.gz emacs-b84fa71f8985284560bacda7d407e3559583844f.zip | |
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) | |||
| 151 | fd_set fds; | 151 | fd_set fds; |
| 152 | 152 | ||
| 153 | block_input (); | 153 | block_input (); |
| 154 | 154 | values.function = ANDROID_GC_INVERT; | |
| 155 | values.function = ANDROID_GC_XOR; | 155 | gc = android_create_gc (ANDROID_GC_FUNCTION, &values); |
| 156 | values.foreground = (FRAME_FOREGROUND_PIXEL (f) | ||
| 157 | ^ FRAME_BACKGROUND_PIXEL (f)); | ||
| 158 | |||
| 159 | gc = android_create_gc ((ANDROID_GC_FUNCTION | ||
| 160 | | ANDROID_GC_FOREGROUND), | ||
| 161 | &values); | ||
| 162 | 156 | ||
| 163 | /* Get the height not including a menu bar widget. */ | 157 | /* Get the height not including a menu bar widget. */ |
| 164 | int height = FRAME_PIXEL_HEIGHT (f); | 158 | int height = FRAME_PIXEL_HEIGHT (f); |