From 32a55535a4b0895bf8de50c6aa172df83a22eb57 Mon Sep 17 00:00:00 2001 From: John Davis Date: Mon, 9 Mar 2026 18:17:45 -0500 Subject: [PATCH] app_server: Fix incorrect size for bitmap hardware cursor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently the size of the bitmap cursor passed to the accelerant is the upper bounds coordinate. This is incorrect and should be the actual size of the cursor. Change-Id: I7be05a78125d0c22843c2ace56a8ab5bda67a014 Reviewed-on: https://review.haiku-os.org/c/haiku/+/10456 Tested-by: Commit checker robot Haiku-Format: Haiku-format Bot Reviewed-by: Jérôme Duval --- .../app/drawing/interface/local/AccelerantHWInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/app/drawing/interface/local/AccelerantHWInterface.cpp b/src/servers/app/drawing/interface/local/AccelerantHWInterface.cpp index 2ef31f8fc1..edf1bfff92 100644 --- a/src/servers/app/drawing/interface/local/AccelerantHWInterface.cpp +++ b/src/servers/app/drawing/interface/local/AccelerantHWInterface.cpp @@ -1246,8 +1246,8 @@ AccelerantHWInterface::SetCursor(ServerCursor* cursor) uint16 xHotSpot = (uint16)cursor->GetHotSpot().x; uint16 yHotSpot = (uint16)cursor->GetHotSpot().y; - uint16 width = (uint16)cursor->Bounds().Width(); - uint16 height = (uint16)cursor->Bounds().Height(); + uint16 width = (uint16)cursor->Width(); + uint16 height = (uint16)cursor->Height(); // Time to talk to the accelerant! cursorSet = fAccSetCursorBitmap(width, height, xHotSpot,