diff options
author | Po Lu <luangruo@yahoo.com> | 2022-05-15 06:23:25 +0000 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-05-15 06:23:45 +0000 |
commit | 99df11a393e5ba39cb2dc93e5a01de69ae18e91a (patch) | |
tree | d781d29dcc19b64158e62e2e7ac8e491b2b1c851 /src/haikufns.c | |
parent | fef8a3a3cdbfc2aaf1b23a54b8b693178a2485fc (diff) | |
download | emacs-99df11a393e5ba39cb2dc93e5a01de69ae18e91a.tar.gz |
Simplify Haiku cursor management code
* src/haiku_support.cc (BCursor_create_default)
(BCursor_create_modeline, BCursor_from_id, BCursor_create_i_beam)
(BCursor_create_progress_cursor, BCursor_create_grab)
(BCursor_delete): Delete specialized cursor creation functions.
(be_delete_cursor, be_create_cursor_from_id): New functions.
(BView_set_view_cursor): Fix coding style.
* src/haiku_support.h (enum haiku_cursor): Add all cursor IDs.
* src/haikufns.c (haiku_free_custom_cursors):
(haiku_set_mouse_color):
* src/haikuterm.c (haiku_term_init): Adjust accordingly.
Diffstat (limited to 'src/haikufns.c')
-rw-r--r-- | src/haikufns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/haikufns.c b/src/haikufns.c index e15a3dc09b9..e783ceec0fe 100644 --- a/src/haikufns.c +++ b/src/haikufns.c @@ -1975,7 +1975,7 @@ haiku_free_custom_cursors (struct frame *f) if (output->current_cursor == *frame_cursor) output->current_cursor = *display_cursor; - BCursor_delete (*frame_cursor); + be_delete_cursor (*frame_cursor); } *frame_cursor = *display_cursor; @@ -2039,7 +2039,7 @@ haiku_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) } /* Create and set the custom cursor. */ - *frame_cursor = BCursor_from_id (n); + *frame_cursor = be_create_cursor_from_id (n); } else if (color_specified_p && cursor_bitmaps[i].bits) { |