GradientFillLinear() on wxMSW now draws on the rectangle border as well, making it consistent with the gernaic version as well as wxDC::DrawRectangle()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
79a2ea3463
commit
e6c46ffefb
@ -2686,8 +2686,8 @@ void wxDC::DoGradientFillLinear (const wxRect& rect,
|
|||||||
|
|
||||||
vertices[0].x = rect.GetLeft();
|
vertices[0].x = rect.GetLeft();
|
||||||
vertices[0].y = rect.GetTop();
|
vertices[0].y = rect.GetTop();
|
||||||
vertices[1].x = rect.GetRight();
|
vertices[1].x = rect.GetRight()+1;
|
||||||
vertices[1].y = rect.GetBottom();
|
vertices[1].y = rect.GetBottom()+1;
|
||||||
|
|
||||||
vertices[firstVertex].Red = (COLOR16)(initialColour.Red() << 8);
|
vertices[firstVertex].Red = (COLOR16)(initialColour.Red() << 8);
|
||||||
vertices[firstVertex].Green = (COLOR16)(initialColour.Green() << 8);
|
vertices[firstVertex].Green = (COLOR16)(initialColour.Green() << 8);
|
||||||
|
Loading…
Reference in New Issue
Block a user