[haiku-bugs] Re: [Haiku] #2945: BGradient draws junk when endpoints are not fully defined

  • From: "aldeck" <trac@xxxxxxxxxxxx>
  • Date: Sat, 08 Sep 2012 18:00:10 -0000

#2945: BGradient draws junk when endpoints are not fully defined
----------------------------------+---------------------------
   Reporter:  sdeken              |      Owner:  aldeck
       Type:  bug                 |     Status:  in-progress
   Priority:  normal              |  Milestone:  R1
  Component:  Kits/Interface Kit  |    Version:  R1/pre-alpha1
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+---------------------------
Changes (by aldeck):

 * owner:  stippi => aldeck
 * status:  new => in-progress


Comment:

 Spotted the problem while working on a webkit bug.
 Color stops positions are in the range 0-255. If the first color stop
 position is > 0, then the begining of the gradient array is left
 uninitialized. Respectively for the last stop if it's not at 255.

 Will fix soon. Btw what's the opinion about making the range 0.0f - 1.0f ?
 it's already a float.

 Also, an out of range value (v < 0 or  v > 255) crashes the app server. We
 need some validity checking.

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

Other related posts: