From: Po Lu Date: Sat, 14 May 2022 05:29:49 +0000 (+0000) Subject: Add more cursor bitmaps on Haiku X-Git-Tag: emacs-29.0.90~1910^2~704 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=320eaa0017c01d1b30cd97c491fdffe8e7580329;p=emacs.git Add more cursor bitmaps on Haiku * src/haikufns.c (cursor_bitmaps): Register new cursor bitmaps. * src/haikugui.h (hand_ptr_bits, hand_ptrmask_bits) (horizd_ptr_bits, horizd_ptrmask_bits, vertd_ptr_bits) (vertd_ptrmask_bits, hourglass_bits, hourglass_mask_bits): New cursor bitmaps. --- diff --git a/src/haikufns.c b/src/haikufns.c index b4cdb93b96d..e15a3dc09b9 100644 --- a/src/haikufns.c +++ b/src/haikufns.c @@ -1856,10 +1856,10 @@ struct user_cursor_bitmap_info cursor_bitmaps[] = { ibeam_ptr_bits, ibeam_ptrmask_bits, 15, 15, 7, 7 }, /* text_cursor */ { left_ptr_bits, left_ptrmsk_bits, 16, 16, 3, 1 }, /* nontext_cursor */ { left_ptr_bits, left_ptrmsk_bits, 16, 16, 3, 1 }, /* modeline_cursor */ - { NULL, NULL, 0, 0, 0, 0 }, /* hand_cursor */ - { NULL, NULL, 0, 0, 0, 0 }, /* hourglass_cursor */ - { NULL, NULL, 0, 0, 0, 0 }, /* horizontal_drag_cursor */ - { NULL, NULL, 0, 0, 0, 0 }, /* vertical_drag_cursor */ + { hand_ptr_bits, hand_ptrmask_bits, 15, 15, 4, 3 }, /* hand_cursor */ + { hourglass_bits, hourglass_mask_bits, 15, 15, 7, 7 }, /* hourglass_cursor */ + { horizd_ptr_bits, horizd_ptrmask_bits, 15, 15, 7, 7 }, /* horizontal_drag_cursor */ + { vertd_ptr_bits, vertd_ptrmask_bits, 15, 15, 7, 7 }, /* vertical_drag_cursor */ { NULL, NULL, 0, 0, 0, 0 }, /* left_edge_cursor */ { NULL, NULL, 0, 0, 0, 0 }, /* top_left_corner_cursor */ { NULL, NULL, 0, 0, 0, 0 }, /* top_edge_cursor */ diff --git a/src/haikugui.h b/src/haikugui.h index f197e718c08..0dc127e6b63 100644 --- a/src/haikugui.h +++ b/src/haikugui.h @@ -144,4 +144,60 @@ MAYBE_UNUSED static unsigned char ibeam_ptrmask_bits[] = 0xfc, 0x1f, 0xfe, 0x3f, 0xfc, 0x1f, 0x00, 0x00 }; +MAYBE_UNUSED static unsigned char hand_ptr_bits[] = + { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x02, 0xa0, 0x02, 0xa0, + 0x02, 0xf0, 0x07, 0xf0, 0x07, 0xf0, 0x07, 0xf0, 0x07, 0xf0, 0x07, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + }; + +MAYBE_UNUSED static unsigned char hand_ptrmask_bits[] = + { + 0x00, 0x00, 0x00, 0x00, 0xa0, 0x02, 0xf0, 0x07, 0xf0, 0x07, 0xf8, + 0x0f, 0xf8, 0x0f, 0xf8, 0x0f, 0xf8, 0x0f, 0xf8, 0x0f, 0xf8, 0x0f, + 0xf0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + }; + +MAYBE_UNUSED static unsigned char horizd_ptr_bits[] = + { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x04, 0x28, + 0x0a, 0xf4, 0x17, 0x02, 0x20, 0xf4, 0x17, 0x28, 0x0a, 0x10, 0x04, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + }; + +MAYBE_UNUSED static unsigned char horizd_ptrmask_bits[] = + { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x04, 0x38, + 0x0e, 0xfc, 0x1f, 0xfe, 0x3f, 0xfc, 0x1f, 0x38, 0x0e, 0x10, 0x04, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + }; + +MAYBE_UNUSED static unsigned char vertd_ptr_bits[] = + { + 0x00, 0x00, 0x80, 0x00, 0x40, 0x01, 0x20, 0x02, 0x50, 0x05, 0x60, + 0x03, 0x40, 0x01, 0x40, 0x01, 0x40, 0x01, 0x60, 0x03, 0x50, 0x05, + 0x20, 0x02, 0x40, 0x01, 0x80, 0x00, 0x00, 0x00 + }; + +MAYBE_UNUSED static unsigned char vertd_ptrmask_bits[] = + { + 0x00, 0x00, 0x80, 0x00, 0xc0, 0x01, 0xe0, 0x03, 0xf0, 0x07, 0xe0, + 0x03, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xe0, 0x03, 0xf0, 0x07, + 0xe0, 0x03, 0xc0, 0x01, 0x80, 0x00, 0x00, 0x00 + }; + +MAYBE_UNUSED static unsigned char hourglass_bits[] = + { + 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x10, 0x04, 0x08, 0x08, 0x24, + 0x10, 0x44, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x88, 0x08, + 0x10, 0x04, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00 + }; + +MAYBE_UNUSED static unsigned char hourglass_mask_bits[] = + { + 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0xf0, 0x07, 0xf8, 0x0f, 0xfc, + 0x1f, 0xfc, 0x1f, 0xfc, 0x1f, 0xfc, 0x1f, 0xfc, 0x1f, 0xf8, 0x0f, + 0xf0, 0x07, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00 + }; + #endif /* _HAIKU_GUI_H_ */