/*
- * OPTION: Gamma correct X11 colours.
- */
-
-#define SUPPORT_GAMMA
-
-/*
* Hack -- Mach-O (native binary format of OS X) is basically a Un*x
* but has Mac OS/Windows-like user interface
*/
((unsigned)(keysym) >= 0xFF00)
-#ifdef SUPPORT_GAMMA
static bool gamma_table_ready = FALSE;
static int gamma_val = 0;
-#endif /* SUPPORT_GAMMA */
/*
{
Colormap cmap = DefaultColormapOfScreen(DefaultScreenOfDisplay(dpy));
XColor xcolour;
-
-#ifdef SUPPORT_GAMMA
-
if (!gamma_table_ready)
{
concptr str = getenv("ANGBAND_X11_GAMMA");
blue = gamma_table[blue];
}
-#endif /* SUPPORT_GAMMA */
-
/* Build the color */
xcolour.red = red * 255;
quicksort(elements, 0, number - 1);
}
-#ifdef SUPPORT_GAMMA
-
/* Table of gamma values */
byte gamma_table[256];
}
}
-#endif /* SUPPORT_GAMMA */
-
/*
* Add a series of keypresses to the "queue".
extern void tag_sort(tag_type elements[], int number);
-#ifdef SUPPORT_GAMMA
extern byte gamma_table[256];
extern void build_gamma_table(int gamma);
-#endif /* SUPPORT_GAMMA */
extern size_t my_strcpy(char *buf, concptr src, size_t bufsize);
extern size_t my_strcat(char *buf, concptr src, size_t bufsize);