Framebuffer: Fix freetype 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.
This commit is contained in:
Michael Drake 2017-01-02 11:59:32 +00:00
parent bb23418981
commit 24b7fdf438

View File

@ -444,8 +444,7 @@ fb_font_width(const plot_font_style_t *fstyle,
*width += glyph->advance.x >> 16;
}
return true;
return NSERROR_OK;
}
@ -481,7 +480,7 @@ fb_font_position(const plot_font_style_t *fstyle,
*actual_x = prev_x;
*char_offset = nxtchr;
return true;
return NSERROR_OK;
}
@ -537,7 +536,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);
@ -545,7 +544,7 @@ fb_font_split(const plot_font_style_t *fstyle,
*char_offset = nxtchr;
return true;
return NSERROR_OK;
}
static struct gui_layout_table layout_table = {