Leaked source code of windows server 2003
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.

72 lines
2.8 KiB

  1. /******************************Module*Header**********************************\
  2. *
  3. * *******************
  4. * * GDI SAMPLE CODE *
  5. * *******************
  6. *
  7. * Module Name: flags.cxx
  8. *
  9. * Contains all the flags stuff
  10. *
  11. * Copyright (c) 1994-1998 3Dlabs Inc. Ltd. All rights reserved.
  12. * Copyright (c) 1995-1999 Microsoft Corporation. All rights reserved.
  13. \*****************************************************************************/
  14. #include "dbgext.hxx"
  15. #include "gdi.h"
  16. //
  17. // The following define expans 'FLAG(x)' to '"x", x':
  18. //
  19. #define FLAG(x) { #x, x }
  20. #define END_FLAG { 0, 0 }
  21. FLAGDEF afdSURF[] =
  22. {
  23. { "Surface is in Video Memory ", SF_VM },
  24. { "Surface is in System Memory ", SF_SM },
  25. { "Surface is in AGP Memory ", SF_AGP },
  26. { "Surface is kept in surface list ", SF_LIST },
  27. { "Surface was allocated by the driver ", SF_ALLOCATED },
  28. { "Surface is a DDRAW wrap surface ", SF_DIRECTDRAW },
  29. { NULL , 0 }
  30. };
  31. FLAGDEF afdCAPS[] =
  32. {
  33. { "CAPS_ZOOM_X_BY2 ", CAPS_ZOOM_X_BY2 },
  34. { "CAPS_ZOOM_Y_BY2 ", CAPS_ZOOM_Y_BY2 },
  35. { "CAPS_SPARSE_SPACE ", CAPS_SPARSE_SPACE },
  36. { "CAPS_SW_POINTER ", CAPS_SW_POINTER },
  37. { "CAPS_TVP4020_POINTER ", CAPS_TVP4020_POINTER },
  38. { "CAPS_P2RD_POINTER ", CAPS_P2RD_POINTER },
  39. { NULL , 0 }
  40. };
  41. FLAGDEF afdSTATUS[] =
  42. {
  43. { "STAT_BRUSH_CACHE ", STAT_BRUSH_CACHE },
  44. { "STAT_DEV_BITMAPS ", STAT_DEV_BITMAPS },
  45. { "ENABLE_BRUSH_CACHE ", ENABLE_BRUSH_CACHE },
  46. { "ENABLE_DEV_BITMAPS ", ENABLE_DEV_BITMAPS },
  47. { NULL , 0 }
  48. };
  49. FLAGDEF afdHOOK[] = {
  50. { "HOOK_ALPHABLEND ", HOOK_ALPHABLEND },
  51. { "HOOK_BITBLT ", HOOK_BITBLT },
  52. { "HOOK_COPYBITS ", HOOK_COPYBITS },
  53. { "HOOK_FILLPATH ", HOOK_FILLPATH },
  54. { "HOOK_GRADIENTFILL ", HOOK_GRADIENTFILL },
  55. { "HOOK_LINETO ", HOOK_LINETO },
  56. { "HOOK_PAINT ", HOOK_PAINT },
  57. { "HOOK_PLGBLT ", HOOK_PLGBLT },
  58. { "HOOK_STRETCHBLT ", HOOK_STRETCHBLT },
  59. { "HOOK_STRETCHBLTROP ", HOOK_STRETCHBLTROP },
  60. { "HOOK_STROKEANDFILLPATH ", HOOK_STROKEANDFILLPATH },
  61. { "HOOK_STROKEPATH ", HOOK_STROKEPATH },
  62. { "HOOK_SYNCHRONIZE ", HOOK_SYNCHRONIZE },
  63. { "HOOK_TEXTOUT ", HOOK_TEXTOUT },
  64. { "HOOK_TRANSPARENTBLT ", HOOK_TRANSPARENTBLT },
  65. { NULL , 0 }
  66. };