diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2017-01-02 12:01:40 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2017-01-02 12:01:40 +0000 |
commit | e3b2f792c0250d219dc56976f8305a05b6b04e36 (patch) | |
tree | c175b5bd0102ad70c2621fbceea5f4ece5b2f846 /frontends | |
parent | 24b7fdf4382dcef274092b4735093fc390815455 (diff) | |
download | netsurf-e3b2f792c0250d219dc56976f8305a05b6b04e36.tar.gz netsurf-e3b2f792c0250d219dc56976f8305a05b6b04e36.tar.bz2 |
Framebuffer: Fix internal font table to return nserror.
We were returning true on success, which when the return value was
tested for being NSERROR_OK (0), meant it was treated as failure.
Now we correctly return NSERROR_OK on success.
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/framebuffer/font_internal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/framebuffer/font_internal.c b/frontends/framebuffer/font_internal.c index 9164a29db..3fd3ac6ef 100644 --- a/frontends/framebuffer/font_internal.c +++ b/frontends/framebuffer/font_internal.c @@ -364,7 +364,7 @@ fb_font_width(const plot_font_style_t *fstyle, } *width *= fb_get_font_size(fstyle); - return true; + return NSERROR_OK; } @@ -397,7 +397,7 @@ fb_font_position(const plot_font_style_t *fstyle, *actual_x = x_pos; *char_offset = nxtchr; - return true; + return NSERROR_OK; } @@ -455,7 +455,7 @@ fb_font_split(const plot_font_style_t *fstyle, * found a space; return previous space */ *actual_x = last_space_x; *char_offset = last_space_idx; - return true; + return NSERROR_OK; } nxtchr = utf8_next(string, length, nxtchr); @@ -463,7 +463,7 @@ fb_font_split(const plot_font_style_t *fstyle, *char_offset = nxtchr; - return true; + return NSERROR_OK; } |