Opened 5 months ago

#15169 new enhancement

Setting cursors with custom size

Reported by: pulkomandy Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Application Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

https://github.com/haikuports/haikuports/issues/3994

We need cursors larger than 16x16 px.

I suggest adding a new constructor to BCursor, taking a BBitmap as a parameter.

Note that when hardware cursor is used, on some devices we could be restricted to 1bpp and no alpha or transparency, so we have to handle this special case:

  • Either restrict to a single pixel format (B_GRAY1)
  • Or attempt ourselves to convert the cursor to something the hardware can handle
  • Or add an InitCheck and let the app figure out an acceptable format
  • Or automatically switch to software cursor when the driver tells us it can't handle what we need

Change History (0)

Note: See TracTickets for help on using tickets.