[haiku-bugs] Re: [Haiku] #9261: Problem with cursor on hrev 44952 gcc4h

  • From: "Ziusudra" <trac@xxxxxxxxxxxx>
  • Date: Tue, 22 Jan 2013 09:17:01 -0000

#9261: Problem with cursor on hrev 44952 gcc4h
----------------------------------+-----------------------------
   Reporter:  Hubert              |      Owner:  axeld
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Servers/app_server  |    Version:  R1/Development
 Resolution:                      |   Keywords:  hardware cursor
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  x86
----------------------------------+-----------------------------

Comment (by Ziusudra):

 Some notes:

 /src/add-ons/accelerants/nvidia (and radeon) can only SetCursorShape not
 SetCursorBitmap. This is why it is only happening with "custom" cursors,
 the app server cursors have no shape data to set.

 /src/servers/app/drawing/{{{AccelerantHWInterface::SetCursor}}} does not
 set {{{fHardwareCursorEnabled}}} to {{{false}}} if it cannot set the HW
 cursor. So the app server cursors stop working once a HW cursor is set and
 the cursor only changes when a different custom cursor is set.

 (Off topic: It seems to me that {{{AccelerantHWInterface::SetCursor}}}
 should try to SetCursorBitmap before SetCursorShape. Though I don't know
 if it is possible to have the option of both.)

 I don't know why the colors are wrong.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9261#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: