| 321 | } |
| 322 | |
| 323 | int |
| 324 | bitmap_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 | } |
no test coverage detected