From a2c297592db22f2f2d8b1c40330a017a6616dee7 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Sun, 22 Dec 2024 13:03:35 -0800 Subject: [PATCH] Fix usage of nonexistant function --- backends/ui/haiku/main_window.cpp | 2 +- backends/ui/haiku/prefs.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/ui/haiku/main_window.cpp b/backends/ui/haiku/main_window.cpp index 60c7e8f..861b8e1 100644 --- a/backends/ui/haiku/main_window.cpp +++ b/backends/ui/haiku/main_window.cpp @@ -289,7 +289,7 @@ void HaikuLooperWindow::MessageReceived(BMessage *msg) { } break; case CMD_SET_CAT: { BBitmap *cat = NULL; - if (msg->FindBitmap("cat", &cat) != B_OK) { + if (msg->FindPointer("cat", &cat) != B_OK) { cat = NULL; } UpdateCat(cat); diff --git a/backends/ui/haiku/prefs.cpp b/backends/ui/haiku/prefs.cpp index aba307f..77d2db1 100644 --- a/backends/ui/haiku/prefs.cpp +++ b/backends/ui/haiku/prefs.cpp @@ -149,7 +149,7 @@ void HaikuPrefsWindow::MessageReceived(BMessage *msg) { set_option("ui.enable_cat", enable_cat); next_handler->PostMessage(CMD_UPDATE_LABEL_SETTING); BMessage *cat_msg = new BMessage(CMD_SET_CAT); - if (enable_cat) cat_msg->AddBitmap("cat", cats[cat_id]) + if (enable_cat) cat_msg->AddPointer("cat", cats[cat_id]) next_handler->PostMessage(cat_msg); } break; case CMD_REVERT: {