]> git.eshelyaron.com Git - emacs.git/commit
Fix colorspace calculations on Haiku
authorPo Lu <luangruo@yahoo.com>
Fri, 29 Apr 2022 11:06:52 +0000 (11:06 +0000)
committerPo Lu <luangruo@yahoo.com>
Fri, 29 Apr 2022 11:07:10 +0000 (11:07 +0000)
commit20d3d62ec9a6048cacf1297622a8f7e48d6d5a4b
tree4fc1b91e5f098aa5fe376a9808cf7e8325b13eaa
parente313cae71fc38e29849e68b421a16a1014626d04
Fix colorspace calculations on Haiku

* src/haiku_support.cc (be_get_display_planes)
(be_get_display_color_cells): Handle grayscale basic colorspaces
correctly.
(be_is_display_grayscale): New function.

* src/haiku_support.h: Update prototypes.

* src/haikufns.c (haiku_set_no_accept_focus, haiku_iconify_frame)
(Fxw_display_color_p, Fxw_color_values, Fx_display_grayscale_p):
Actually handle grayscale colorspaces.
(Fx_display_pixel_width, Fx_display_pixel_height)
(Fx_display_mm_height, Fx_display_mm_width): Clean up coding
style.
(Fx_display_visual_class): Handle grayscale colorspaces.
(syms_of_haikufns): New defsyms.
src/haiku_support.cc
src/haiku_support.h
src/haikufns.c