Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.3 KiB

  1. /*************************************************************************
  2. ** **
  3. ** DCI.H **
  4. ** **
  5. ** Copyright (c) 1992, ATI Technologies Inc. **
  6. *************************************************************************/
  7. #define ROUND_UP_TO_64K(x) (((ULONG)(x) + 0x10000 - 1) & ~(0x10000 - 1))
  8. typedef struct _DCISURF
  9. {
  10. // This union must appear at the beginning of the structure. It
  11. // defines the public fields returned to GDI.
  12. union {
  13. DCISURFACEINFO SurfaceInfo;
  14. DCIOFFSCREEN OffscreenInfo;
  15. DCIOVERLAY OverlayInfo;
  16. };
  17. // The following are private fields we use to maintain the the
  18. // DCI surface.
  19. PDEV* ppdev; // To find our PDEV
  20. ULONG Offset; // Location of surface in memory.
  21. ULONG Size; // Size of surface in memory.
  22. // This information could be changed
  23. // to rectangles.
  24. } DCISURF, *PDCISURF;
  25. ULONG DCICreatePrimarySurface(PDEV *pdev, ULONG cjIn, VOID *pvIn, ULONG cjOut, VOID *pvOut);
  26.