static BOOL IsDirectDrawSupported()
{
    HDC hDC;
    DWORD Planes;
    DWORD Bpp;

    hDC = GetDC(NULL);
    Planes = GetDeviceCaps(hDC, PLANES);
    Bpp = GetDeviceCaps(hDC, BITSPIXEL);
    ReleaseDC(NULL, hDC);

    if (Planes * Bpp < 8)
        return FALSE;

    return TRUE;
}

相关文章:

  • 2022-12-23
  • 2021-07-30
  • 2021-07-23
  • 2021-12-29
  • 2022-12-23
  • 2021-10-18
  • 2021-11-05
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2022-01-31
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-06-15
相关资源
相似解决方案