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

Function bitmap_to_file

outdated/win/gem/bitmfile.c:323–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323int
324bitmap_to_file(FILE_TYP typ, int ww, int wh, unsigned int pwx,
325 unsigned int pwy, unsigned int planes, unsigned int colors,
326 const char *filename,
327 void (*get_color)(unsigned int colind, struct RGB *rgb),
328 void (*get_pixel)(int x, int y, unsigned int *colind))
329{
330 switch (typ) {
331 case IMG:
332 case XIMG:
333 return (bitmap_to_img(typ, ww, wh, pwx, pwy, planes, colors, filename,
334 get_color, get_pixel));
335 default:
336 return (-1);
337 };
338}

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

bitmap_to_imgFunction · 0.85

Tested by

no test coverage detected