]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dc.cpp
Correction to style code
[wxWidgets.git] / src / msw / dc.cpp
index 8c7a50a98264b557e9f914cb1659746fef2249a4..dd4750f6a0bac23f35e0f00181aefd4054b59e77 100644 (file)
@@ -2686,8 +2686,8 @@ void wxDC::DoGradientFillLinear (const wxRect& rect,
 
         vertices[0].x = rect.GetLeft();
         vertices[0].y = rect.GetTop();
-        vertices[1].x = rect.GetRight();
-        vertices[1].y = rect.GetBottom();
+        vertices[1].x = rect.GetRight()+1;
+        vertices[1].y = rect.GetBottom()+1;
 
         vertices[firstVertex].Red = (COLOR16)(initialColour.Red() << 8);
         vertices[firstVertex].Green = (COLOR16)(initialColour.Green() << 8);