Lines 229-239
Link Here
|
229 |
unsigned long pixel; /* X pixel value (in) */ |
229 |
unsigned long pixel; /* X pixel value (in) */ |
230 |
{ |
230 |
{ |
231 |
assert(map != NULL); |
231 |
assert(map != NULL); |
232 |
assert(pixel < map->length); |
|
|
233 |
assert(index >= 0 && index < map->length); |
232 |
assert(index >= 0 && index < map->length); |
234 |
|
233 |
|
235 |
map->Xpixels[index] = pixel; |
234 |
map->Xpixels[index] = pixel; |
236 |
map->GKSindexes[pixel] = index; |
235 |
map->GKSindexes[index] = index; |
237 |
} |
236 |
} |
238 |
|
237 |
|
239 |
|
238 |
|
Lines 520-528
Link Here
|
520 |
ws->vinfo = vinfo; |
519 |
ws->vinfo = vinfo; |
521 |
ws->screenNum = screenNum; |
520 |
ws->screenNum = screenNum; |
522 |
XcMap_enter( |
521 |
XcMap_enter( |
523 |
ws->XcMap, GKS_BACKGROUND_INDEX, BlackPixel(dpy, screenNum)); |
522 |
&(ws->XcMap), GKS_BACKGROUND_INDEX, BlackPixel(dpy, screenNum)); |
524 |
XcMap_enter( |
523 |
XcMap_enter( |
525 |
ws->XcMap, GKS_FOREGROUND_INDEX, WhitePixel(dpy, screenNum)); |
524 |
&(ws->XcMap), GKS_FOREGROUND_INDEX, WhitePixel(dpy, screenNum)); |
526 |
status = 1; /* success */ |
525 |
status = 1; /* success */ |
527 |
} |
526 |
} |
528 |
} |
527 |
} |