]> git.eshelyaron.com Git - emacs.git/commit
Allow actually setting cursor colors on Haiku
authorPo Lu <luangruo@yahoo.com>
Fri, 13 May 2022 03:14:26 +0000 (03:14 +0000)
committerPo Lu <luangruo@yahoo.com>
Fri, 13 May 2022 03:14:26 +0000 (03:14 +0000)
commit119f613cf5a39db1712c87ebcc21d7600ef79e5f
tree3a59debb0bb401a95669bfa39fc5828896288f95
parent6d31ac596165f4d57204af1ee87a7badd79c8697
Allow actually setting cursor colors on Haiku

* src/haiku_support.cc (be_create_pixmap_cursor): New function.
* src/haiku_support.h: Update prototypes.

* src/haikufns.c (haiku_create_frame): Change default cursor
color to "font-color".
(haiku_create_tip_frame): Likewise.

(struct user_cursor_bitmap_info): New struct.
(cursor_bitmaps): New list of bitmaps corresponding to cursors.
(haiku_create_colored_cursor): New function.
(haiku_free_custom_cursors): Set current cursor to the default
cursor before freeing the original value.
(haiku_set_mouse_color): Actually recolor cursors based on
built-in bitmaps.

* src/haikuterm.c (haiku_defined_color): Clean up coding style.
src/haiku_support.cc
src/haiku_support.h
src/haikufns.c
src/haikuterm.c