From e3b2f792c0250d219dc56976f8305a05b6b04e36 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 2 Jan 2017 12:01:40 +0000 Subject: 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. --- frontends/framebuffer/font_internal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'frontends/framebuffer') 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; } -- cgit v1.2.3