app_server: Fix incorrect size for bitmap hardware cursor
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 <[email protected]> Haiku-Format: Haiku-format Bot <[email protected]> Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user