Commit e976e179 authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

gdi32: Update edgetable limits with top and bottom.

parent 41851482
...@@ -2457,8 +2457,8 @@ static unsigned int REGION_CreateEdgeTable(const INT *Count, INT nbpolygons, ...@@ -2457,8 +2457,8 @@ static unsigned int REGION_CreateEdgeTable(const INT *Count, INT nbpolygons,
REGION_InsertEdgeInET(ET, pETEs, top->y, &pSLLBlock, &iSLLBlock); REGION_InsertEdgeInET(ET, pETEs, top->y, &pSLLBlock, &iSLLBlock);
if (PrevPt->y > ET->ymax) ET->ymax = PrevPt->y; if (top->y < ET->ymin) ET->ymin = top->y;
if (PrevPt->y < ET->ymin) ET->ymin = PrevPt->y; if (bottom->y > ET->ymax) ET->ymax = bottom->y;
pETEs++; pETEs++;
} }
} }
......
...@@ -1910,7 +1910,7 @@ static void test_clipped_polygon_fill(void) ...@@ -1910,7 +1910,7 @@ static void test_clipped_polygon_fill(void)
oldbmp = SelectObject( memdc, bmp ); oldbmp = SelectObject( memdc, bmp );
Polygon( memdc, pts, ARRAY_SIZE(pts) ); Polygon( memdc, pts, ARRAY_SIZE(pts) );
col = GetPixel( memdc, 1, 1 ); 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, oldbrush );
SelectObject( memdc, oldbmp ); SelectObject( memdc, oldbmp );
DeleteObject( brush ); DeleteObject( brush );
......
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