]> git.eshelyaron.com Git - emacs.git/commit
Enable configuring Emacs for "pseudo-grayscale" systems on Android
authorPo Lu <luangruo@yahoo.com>
Tue, 23 Apr 2024 07:57:45 +0000 (15:57 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 23 Apr 2024 10:14:00 +0000 (12:14 +0200)
commitab3e73bed560e274681efc4d903916973dcb246c
tree415127287c4f168fc3d6e11f22e21d9669594b8c
parent77f4e63a902c0704d624340c055cb84a42d5bfeb
Enable configuring Emacs for "pseudo-grayscale" systems on Android

* doc/emacs/android.texi (Android Windowing): Document how to
configure Emacs for monochrome displays.

* src/androidfns.c (Fx_display_visual_class): Return
Qstatic_gray when n_planes is smaller than 24.
(Fandroid_get_connection): Set n_planes by the value of
android_display_planes.
(syms_of_androidfns): <Qstatic_gray>: New function.

* src/androidterm.c (android_alloc_nearest_color): Allocate
monochrome colors similarly to the X server.
(android_query_colors): Fix typos.
(android_draw_fringe_bitmap): Create bitmaps of n_image_planes
depth.
(android_term_init): Initialize n_image_planes to 24.
(syms_of_androidterm) <android_display_planes>: New variable.

* src/androidterm.h (struct android_display_info): New field
`n_image_planes'.

* src/image.c (n_planes) [HAVE_ANDROID]: Define to
n_image_planes.

(cherry picked from commit cd7456e00d719d32c203c71b4e23c98b0c4e1967)
doc/emacs/android.texi
src/androidfns.c
src/androidterm.c
src/androidterm.h
src/image.c