BOOL FASTCALL IntPolygon(HDC hdc, POINT *Point, int Count) { PDC dc; if (!(dc = DC_LockDc(hdc))) { EngSetLastError(ERROR_INVALID_HANDLE); return FALSE; } return IntGdiPolygon(dc, Point, Count); }
BOOL FASTCALL IntGdiPolyPolygon(DC *dc, LPPOINT Points, PULONG PolyCounts, int Count) { if (PATH_IsPathOpen(dc->dclevel)) return PATH_PolyPolygon ( dc, Points, (PINT)PolyCounts, Count); while (--Count >=0) { if (!IntGdiPolygon ( dc, Points, *PolyCounts )) return FALSE; Points+=*PolyCounts++; } return TRUE; }
BOOL FASTCALL IntPolygon(HDC hdc, POINT *Point, int Count) { BOOL bResult; PDC pdc; pdc = DC_LockDc(hdc); if (pdc == NULL) { EngSetLastError(ERROR_INVALID_HANDLE); return FALSE; } bResult = IntGdiPolygon(pdc, Point, Count); DC_UnlockDc(pdc); return bResult; }