#include "defs.h" #include setup_colours(pw) Pixrect *pw; { Xv_cmsdata cms_data; unsigned char red[NO_COLS], green[NO_COLS], blue[NO_COLS]; int i; cms_data.type = XV_STATIC_CMS; cms_data.size = NO_COLS; cms_data.rgb_count = NO_COLS; cms_data.index = 0; cms_data.red = red; cms_data.green = green; cms_data.blue = blue; for (i=0; i < NO_COLS; i++) red[i] = green[i] = blue[i] = 255; red[WHITE] = 255; green[WHITE] = 255; blue[WHITE] = 255; red[RED] = 255; green[RED] = 0; blue[RED] = 0; red[ORANGE] = 255; green[ORANGE] = 120; blue[ORANGE] = 50; red[YELLOW] = 245; green[YELLOW] = 245; blue[YELLOW] = 0; red[GREEN] = 0; green[GREEN] = 255; blue[GREEN] = 0; red[BLUE] = 0; green[BLUE] = 0; blue[BLUE] = 255; red[CYAN] = 0; green[CYAN] = 245; blue[CYAN] = 245; red[VIOLET] = 128; green[VIOLET] = 0; blue[VIOLET] = 178; red[BLACK] = 0; green[BLACK] = 0; blue[BLACK] = 0; red[GRAY] = 200; green[GRAY] = 200; blue[GRAY] = 200; /* red[NO_COLS-1] = 255; green[NO_COLS-1] = 255; blue[NO_COLS-1] = 255; */ xv_set(pw, WIN_CMS_NAME, "TETRIS", WIN_CMS_DATA, &cms_data, 0); }