cursor_shape.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef CURSOR_SHAPE_INCLUDED
  2. #define CURSOR_SHAPE_INCLUDED
  3. /* Shared 16x16 mouse-pointer image: a white arrow with a one-pixel black
  4. outline, so the cursor stays visible over white pages and windows too.
  5. Bit 15 of each row is column 0; the hotspot is the top-left pixel of the
  6. 16x16 box. The software cursor, the Cirrus two-plane cursor and the
  7. Radeon ARGB cursor all build their bitmaps from these tables. */
  8. #define CURSOR_SHAPE_WIDTH 16
  9. #define CURSOR_SHAPE_HEIGHT 16
  10. /* White fill (the arrow body). */
  11. static const unsigned short cursor_shape_fill[CURSOR_SHAPE_HEIGHT] = {
  12. 0x0000,
  13. 0x4000, /* 1....... ........ */
  14. 0x6000, /* 11...... ........ */
  15. 0x7000, /* 111..... ........ */
  16. 0x7800, /* 1111.... ........ */
  17. 0x7C00, /* 11111... ........ */
  18. 0x7E00, /* 111111.. ........ */
  19. 0x7F00, /* 1111111. ........ */
  20. 0x7F80, /* 11111111 ........ */
  21. 0x7E00, /* 111111.. ........ */
  22. 0x7000, /* 111..... ........ */
  23. 0x4000, /* 1....... ........ */
  24. 0x0000,
  25. 0x0000,
  26. 0x0000,
  27. 0x0000
  28. };
  29. /* Black outline (everything adjacent to the fill). */
  30. static const unsigned short cursor_shape_outline[CURSOR_SHAPE_HEIGHT] = {
  31. 0xC000, /* 11...... ........ tip */
  32. 0xA000, /* 1.1..... ........ */
  33. 0x9000, /* 1..1.... ........ */
  34. 0x8800, /* 1...1... ........ */
  35. 0x8400, /* 1....1.. ........ */
  36. 0x8200, /* 1.....1. ........ */
  37. 0x8100, /* 1......1 ........ */
  38. 0x8080, /* 1....... 1....... */
  39. 0x8040, /* 1....... .1...... */
  40. 0x8180, /* 1......1 1....... */
  41. 0x8E00, /* 1...111. ........ */
  42. 0xB000, /* 1.11.... ........ */
  43. 0x4000 /* .1...... ........ */
  44. };
  45. #endif