gdi32: Update edgetable limits with top and bottom.

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2018-07-13 09:45:39 -07:00 committed by Alexandre Julliard
parent 418514820f
commit e976e179ae
2 changed files with 3 additions and 3 deletions

View File

@ -2457,8 +2457,8 @@ static unsigned int REGION_CreateEdgeTable(const INT *Count, INT nbpolygons,
REGION_InsertEdgeInET(ET, pETEs, top->y, &pSLLBlock, &iSLLBlock);
if (PrevPt->y > ET->ymax) ET->ymax = PrevPt->y;
if (PrevPt->y < ET->ymin) ET->ymin = PrevPt->y;
if (top->y < ET->ymin) ET->ymin = top->y;
if (bottom->y > ET->ymax) ET->ymax = bottom->y;
pETEs++;
}
}

View File

@ -1910,7 +1910,7 @@ static void test_clipped_polygon_fill(void)
oldbmp = SelectObject( memdc, bmp );
Polygon( memdc, pts, ARRAY_SIZE(pts) );
col = GetPixel( memdc, 1, 1 );
todo_wine ok( col == RGB( 0x11, 0x22, 0x33 ), "got %06x\n", col );
ok( col == RGB( 0x11, 0x22, 0x33 ), "got %06x\n", col );
SelectObject( memdc, oldbrush );
SelectObject( memdc, oldbmp );
DeleteObject( brush );