summaryrefslogtreecommitdiff
path: root/beos/font.cpp
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-24 20:38:30 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-24 20:38:30 +0100
commit9ce01d2024e12881e29f4efd28845f12e56e7b67 (patch)
tree53a8f0cd1ca8f9537e23791cfedc66f5a90bd288 /beos/font.cpp
parent5c567d4f2034ac227350b2d72647cd0d37ebee68 (diff)
downloadnetsurf-9ce01d2024e12881e29f4efd28845f12e56e7b67.tar.gz
netsurf-9ce01d2024e12881e29f4efd28845f12e56e7b67.tar.bz2
fixup errors in font layout table conversion
Diffstat (limited to 'beos/font.cpp')
-rw-r--r--beos/font.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/beos/font.cpp b/beos/font.cpp
index cb4d3e6c9..87c2346d5 100644
--- a/beos/font.cpp
+++ b/beos/font.cpp
@@ -36,7 +36,6 @@ extern "C" {
#include "utils/log.h"
#include "utils/nsoption.h"
#include "utils/nsurl.h"
-
#include "desktop/gui_layout.h"
}
@@ -287,7 +286,7 @@ static nserror beos_font_split(const plot_font_style_t *fstyle,
if (x < current && last_space != 0) {
*actual_x = (int)last_x;
*char_offset = last_space;
- return true;
+ return NSERROR_OK;;
}
esc += escapements[i];
current = font.Size() * esc;
@@ -367,9 +366,9 @@ bool nsfont_paint(const plot_font_style_t *fstyle,
static struct gui_layout_table layout_table = {
- .width = beos_font_width,
- .position = beos_font_position,
- .split = beos_font_split,
+ /*.width = */beos_font_width,
+ /*.position = */beos_font_position,
+ /*.split = */beos_font_split
};
struct gui_layout_table *beos_layout_table = &layout_table;