X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=nullfe.c;h=4c9975b90e7c23793e107ccabbdffeae7d44c7f0;hb=3234912f921916a1b8da164fd61dc75579358577;hp=4a31ab873404767f9984814e60b7e0460abdded2;hpb=94b36c11e00bb740813506b0d3911f90f1829941;p=sgt-puzzles.git diff --git a/nullfe.c b/nullfe.c index 4a31ab8..4c9975b 100644 --- a/nullfe.c +++ b/nullfe.c @@ -13,10 +13,14 @@ void draw_text(drawing *dr, int x, int y, int fonttype, int fontsize, int align, int colour, char *text) {} void draw_rect(drawing *dr, int x, int y, int w, int h, int colour) {} void draw_line(drawing *dr, int x1, int y1, int x2, int y2, int colour) {} +void draw_thick_line(drawing *dr, float thickness, + float x1, float y1, float x2, float y2, int colour) {} void draw_polygon(drawing *dr, int *coords, int npoints, int fillcolour, int outlinecolour) {} void draw_circle(drawing *dr, int cx, int cy, int radius, int fillcolour, int outlinecolour) {} +char *text_fallback(drawing *dr, const char *const *strings, int nstrings) +{ return dupstr(strings[0]); } void clip(drawing *dr, int x, int y, int w, int h) {} void unclip(drawing *dr) {} void start_draw(drawing *dr) {} @@ -27,9 +31,16 @@ void blitter_free(drawing *dr, blitter *bl) {} void blitter_save(drawing *dr, blitter *bl, int x, int y) {} void blitter_load(drawing *dr, blitter *bl, int x, int y) {} int print_mono_colour(drawing *dr, int grey) { return 0; } -int print_rgb_colour(drawing *dr, int hatch, float r, float g, float b) +int print_grey_colour(drawing *dr, float grey) { return 0; } +int print_hatched_colour(drawing *dr, int hatch) { return 0; } +int print_rgb_mono_colour(drawing *dr, float r, float g, float b, int grey) +{ return 0; } +int print_rgb_grey_colour(drawing *dr, float r, float g, float b, float grey) +{ return 0; } +int print_rgb_hatched_colour(drawing *dr, float r, float g, float b, int hatch) { return 0; } void print_line_width(drawing *dr, int width) {} +void print_line_dotted(drawing *dr, int dotted) {} void midend_supersede_game_desc(midend *me, char *desc, char *privdesc) {} void status_bar(drawing *dr, char *text) {} @@ -47,3 +58,12 @@ void fatal(char *fmt, ...) exit(1); } +#ifdef DEBUGGING +void debug_printf(char *fmt, ...) +{ + va_list ap; + va_start(ap, fmt); + vfprintf(stdout, fmt, ap); + va_end(ap); +} +#endif