コード例 #1
0
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);
}
コード例 #2
0
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;
}
コード例 #3
0
ファイル: fillshap.c プロジェクト: reactos/reactos
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;
}