From 390fb8fb8dd559e2efbdaf7a19be9d2faa4042e2 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 8 Oct 2002 11:15:29 +0000 Subject: [project @ 2002-10-08 11:15:29 by bursa] Removed most Unicode support, because it slows things down too much. svn path=/import/netsurf/; revision=42 --- riscos/gui.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'riscos/gui.c') diff --git a/riscos/gui.c b/riscos/gui.c index b66a3b4a8..9601c9ef0 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -1,5 +1,5 @@ /** - * $Id: gui.c,v 1.2 2002/09/26 21:38:33 bursa Exp $ + * $Id: gui.c,v 1.3 2002/10/08 11:15:29 bursa Exp $ */ #include "netsurf/riscos/font.h" @@ -357,13 +357,11 @@ if (g->data.browser.bw->current_content->data.html.text_selection.selected == 1) } } - text = font_utf8_to_string(box->font, box->text, box->length); - font_paint(box->font->handle[0], text, - font_OS_UNITS | font_GIVEN_FONT | font_KERN, + font_paint(box->font->handle, box->text, + font_OS_UNITS | font_GIVEN_FONT | font_KERN | font_GIVEN_LENGTH, x + box->x * 2, y - box->y * 2 - box->height * 2, NULL, NULL, - 0); - free(text); + box->length); } } -- cgit v1.2.3