Commit 0c777a7d authored by Jeff Smith's avatar Jeff Smith Committed by Alexandre Julliard

gdiplus: GdipIsVisiblePathPoint is not affected by world transform.

parent c9f2f1c3
......@@ -1793,7 +1793,7 @@ GpStatus WINGDIPAPI GdipIsVisiblePathPoint(GpPath* path, REAL x, REAL y, GpGraph
if(status != Ok)
return status;
status = GdipGetRegionHRgn(region, graphics, &hrgn);
status = GdipGetRegionHRgn(region, NULL, &hrgn);
if(status != Ok){
GdipDeleteRegion(region);
return status;
......
......@@ -1865,6 +1865,18 @@ static void test_isvisible(void)
status = GdipIsVisiblePathPoint(path, 0.0, 0.0, graphics, &result);
expect(Ok, status);
expect(TRUE, result);
/* not affected by world transform */
status = GdipScaleWorldTransform(graphics, 2.0, 2.0, MatrixOrderPrepend);
expect(Ok, status);
result = FALSE;
status = GdipIsVisiblePathPoint(path, 9.0, 9.0, graphics, &result);
expect(Ok, status);
expect(TRUE, result);
result = TRUE;
status = GdipIsVisiblePathPoint(path, 11.0, 11.0, graphics, &result);
expect(Ok, status);
expect(FALSE, result);
GdipResetWorldTransform(graphics);
GdipDeletePath(path);
GdipDeleteGraphics(graphics);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment