[OpenJDK 2D-Dev] Review request for JDK-8054638 xrender: text drawn after setColor(Color.white) is actually black

Phil Race philip.race at oracle.com
Tue Aug 19 19:28:02 UTC 2014


Hi Clemens,

Fix looks good. Is there a way you can check in a regression test 
along-side the fix
else you'll need to add a 'noreg-<some reason>' label on the JBS bug.

-phil.

On 8/12/2014 10:33 PM, Clemens Eisserer wrote:
> Sorry, forgot to include the link to the webrev:
> http://cr.openjdk.java.net/~ceisserer/8054638/webrev.00/
>
> 2014-08-13 7:32 GMT+02:00 Clemens Eisserer <linuxhippy at gmail.com>:
>> Hello,
>>
>> Please review my fix for JDK-8054638  xrender: text drawn after
>> setColor(Color.white) is actually black.
>>
>> The XRSolidSrcPict manages a small 1x1 pixmap which is used as source
>> surface for some operations.
>> To avoid redundant fillRect operations when setting it's color, the
>> currently set pixel value is stored in an integer variable and
>> compared against each before the managed pixmap is used.
>> This integer variable was initially set to -1, which corresponds to
>> white - while the actual pixmap had been initialized to black in the
>> constructor - causing white text to be painted black under some
>> circumstances.
>>
>> The fix corrently initializes the variable used for validation to solid black.
>>
>> Thank you in advance, Clemens




More information about the 2d-dev mailing list