MCPcopy Create free account
hub / github.com/NetHack/NetHack / get_pixel

Function get_pixel

outdated/win/gem/xpm2img.c:94–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 rgb->b = (1000L * (long) ColorMap[colind].b) / 0xFF;
93}
94void
95get_pixel(int x, int y, unsigned int *colind)
96{
97 *colind = Bild_daten[y][x];
98}
99FILE *xpmfh = 0;
100char initbuf[200];
101char *xpmbuf = initbuf;

Callers 1

bitmap_to_imgFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected