diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-04-28 19:07:06 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-04-28 19:07:06 +0100 |
commit | e5a05f1c0e1bb7e7388d4fedb584d8ec71be6628 (patch) | |
tree | e3062326d0c40ae80e16dd5912d9f2078c2973a7 /amiga/font.h | |
parent | cae22b17ac28ba77d72ecf9d6bd33614981713cf (diff) | |
download | netsurf-e5a05f1c0e1bb7e7388d4fedb584d8ec71be6628.tar.gz netsurf-e5a05f1c0e1bb7e7388d4fedb584d8ec71be6628.tar.bz2 |
Fix Amiga build following recent API change
Diffstat (limited to 'amiga/font.h')
-rwxr-xr-x | amiga/font.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/amiga/font.h b/amiga/font.h index a0b63d060..cd526057f 100755 --- a/amiga/font.h +++ b/amiga/font.h @@ -20,6 +20,7 @@ #define AMIGA_FONT_H #include "desktop/plotters.h" +#include "utils/errors.h" #include <graphics/rastport.h> #include <graphics/text.h> @@ -37,15 +38,15 @@ void ami_font_close_disk_font(struct TextFont *tfont); /* Font engine tables */ struct ami_font_functions { - bool (*width)(const plot_font_style_t *fstyle, + nserror (*width)(const plot_font_style_t *fstyle, const char *string, size_t length, int *width); - bool (*posn)(const plot_font_style_t *fstyle, + nserror (*posn)(const plot_font_style_t *fstyle, const char *string, size_t length, int x, size_t *char_offset, int *actual_x); - bool (*split)(const plot_font_style_t *fstyle, + nserror (*split)(const plot_font_style_t *fstyle, const char *string, size_t length, int x, size_t *char_offset, int *actual_x); |