[haiku-bugs] [Haiku] #15169: Setting cursors with custom size

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 16 Jul 2019 07:08:46 -0000

#15169: Setting cursors with custom size
----------------------------------+------------------------------
 Reporter:  pulkomandy            |        Owner:  nobody
     Type:  enhancement           |       Status:  new
 Priority:  normal                |    Milestone:  Unscheduled
Component:  Kits/Application Kit  |      Version:  R1/Development
 Keywords:                        |   Blocked By:
 Blocking:                        |  Has a Patch:  0
 Platform:  All                   |
----------------------------------+------------------------------
 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

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/15169>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: