Menu

#2144 Win32 Direct2D rounded rectangles draw with small light patches in corners

Bug
closed-fixed
5
2019-12-07
2019-12-02
No

On Direct2D, the fill and outline of rounded rectangles are drawn separately but do not merge quite seamlessly when both the fill and outline are the same colour and translucency. There are some small light patches in the corners as shown in the image.

Enlarged:
Enlarged

This can be fixed with a special case when the colour and translucency are the same, drawing with a single call as shown in the patch.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2019-12-02

    A different approach, changing the radius on the fill also fixes the light patches.

     
  • Neil Hodgson

    Neil Hodgson - 2019-12-03
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2019-12-03

    Committed [1b8ce5], the simpler change that just modified the radius of the filled rounded rectangle.

     

    Related

    Commit: [1b8ce5]

  • Neil Hodgson

    Neil Hodgson - 2019-12-07
    • status: open-fixed --> closed-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2019-12-07

    Committed [1b8ce5], the simpler change that just modified the radius of the filled rounded rectangle.

     

    Related

    Commit: [1b8ce5]


Log in to post a comment.

MongoDB Logo MongoDB