summaryrefslogtreecommitdiff
path: root/frontends/framebuffer/font_internal.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-01-02 12:01:40 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2017-01-02 12:01:40 +0000
commite3b2f792c0250d219dc56976f8305a05b6b04e36 (patch)
treec175b5bd0102ad70c2621fbceea5f4ece5b2f846 /frontends/framebuffer/font_internal.c
parent24b7fdf4382dcef274092b4735093fc390815455 (diff)
downloadnetsurf-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/framebuffer/font_internal.c')
-rw-r--r--frontends/framebuffer/font_internal.c8
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;
}