summaryrefslogtreecommitdiff
path: root/src/haiku_draw_support.cc
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-02-12 04:42:42 +0000
committerPo Lu <luangruo@yahoo.com>2022-02-12 04:42:42 +0000
commit4c6a4281a41ca2b3ab76339292aac24d8470efe5 (patch)
tree7c10514e89f78744cda1d9c4b7800f761e3b6cf7 /src/haiku_draw_support.cc
parent9de7b3f3355cec3b36dd16af66d0110240bebfb8 (diff)
downloademacs-4c6a4281a41ca2b3ab76339292aac24d8470efe5.tar.gz
Implement visual bell on Haiku like on X
* src/haiku_draw_support.cc (BView_FillRectangleForVisibleBell): Delete function. (BView_InvertRect): New function. * src/haiku_support.cc (class EmacsView): Delete field `visible_bell_color' and visible bell related methods. (EmacsView_do_visible_bell): Delete function. * src/haiku_support.h: Update prototypes. * src/haikuterm.c (haiku_flash): Implement using `BView_InvertRect'. (haiku_beep): Use `haiku_flash' instead.
Diffstat (limited to 'src/haiku_draw_support.cc')
-rw-r--r--src/haiku_draw_support.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/haiku_draw_support.cc b/src/haiku_draw_support.cc
index 270a619b89b..f8df298958f 100644
--- a/src/haiku_draw_support.cc
+++ b/src/haiku_draw_support.cc
@@ -479,10 +479,9 @@ BView_SetHighColorForVisibleBell (void *view, uint32_t color)
}
void
-BView_FillRectangleForVisibleBell (void *view, int x, int y, int width, int height)
+BView_InvertRect (void *view, int x, int y, int width, int height)
{
- BView *vw = (BView *) view;
- BRect rect = BRect (x, y, x + width - 1, y + height - 1);
+ BView *vw = get_view (view);
- vw->FillRect (rect);
+ vw->InvertRect (BRect (x, y, x + width - 1, y + height - 1));
}