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.

40 lines
1.3 KiB

  1. /*
  2. * SccsID @(#)host_graph.h 1.8 12/3/90 Copyright Insignia Solutions Ltd.
  3. */
  4. extern long pcwindow;
  5. extern int terminal_type;
  6. /* values for terminal type */
  7. #define TERMINAL_TYPE_DUMB 0
  8. #define TERMINAL_TYPE_SUN 1
  9. #define TERMINAL_TYPE_X11 2
  10. #define TERMINAL_TYPE_DEFAULT TERMINAL_TYPE_SUN
  11. /*
  12. * Bit masks for attribute bytes
  13. */
  14. #define BLINK 0x80 /* Blink bit */
  15. #define BOLD 0x08 /* Bold bit */
  16. #define BACKGROUND 0x70 /* Background bits */
  17. #define FOREGROUND 0x07 /* Foreground bits */
  18. #define MAX_FONT_PATHNAME_LEN 40
  19. /***********************************************************/
  20. /* In gfx_update.c/herc_update_screen(), the inner loop of */
  21. /* the routine multiplies the row by the char height to */
  22. /* obtain the row to rop the screen data to. Since we */
  23. /* dont need to do this, we dont want an inner loop */
  24. /* performace hit so we remove the multiplication. But, */
  25. /* in keeping with the generic base file rule, we put */
  26. /* the define here in a host file on the Advice of */
  27. /* Andrew. */
  28. /***********************************************************/
  29. #ifndef SUN_VA
  30. #define HOST_HERC_PAINT_OFFSET(row) (row * get_char_height())
  31. #else
  32. #define HOST_HERC_PAINT_OFFSET(row) (row)
  33. #endif /* SUN_VA */