X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/3161048dbbffb3b02b124bac3bec03b1a4f22340..61072f7be9d1ab83c459ec1eabc0f9503b57fac6:/puzzles.h diff --git a/puzzles.h b/puzzles.h index 987bd9b..0bdb581 100644 --- a/puzzles.h +++ b/puzzles.h @@ -137,6 +137,8 @@ void draw_rect(frontend *fe, int x, int y, int w, int h, int colour); void draw_line(frontend *fe, int x1, int y1, int x2, int y2, int colour); void draw_polygon(frontend *fe, int *coords, int npoints, int fill, int colour); +void draw_circle(frontend *fe, int cx, int cy, int radius, + int fill, int colour); void clip(frontend *fe, int x, int y, int w, int h); void unclip(frontend *fe); void start_draw(frontend *fe); @@ -203,6 +205,13 @@ char *dupstr(const char *s); * misc.c */ void free_cfg(config_item *cfg); +void obfuscate_bitmap(unsigned char *bmp, int bits, int decode); + +/* allocates output each time. len is always in bytes of binary data. + * May assert (or just go wrong) if lengths are unchecked. */ +char *bin2hex(const unsigned char *in, int inlen); +unsigned char *hex2bin(const char *in, int outlen); + /* * version.c