summaryrefslogtreecommitdiff
path: root/riscos/save_draw.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-02-20 13:19:19 +0000
committerJames Bursa <james@netsurf-browser.org>2005-02-20 13:19:19 +0000
commit65b5ae0f8fe15d3ad659817cd72febf16cccdfe2 (patch)
treed51966245d3dd96a0422ba9b4adec9cc001f9515 /riscos/save_draw.c
parent1a52a32e5d5ccf78639c268cc660d8d8b0d98092 (diff)
downloadnetsurf-65b5ae0f8fe15d3ad659817cd72febf16cccdfe2.tar.gz
netsurf-65b5ae0f8fe15d3ad659817cd72febf16cccdfe2.tar.bz2
[project @ 2005-02-20 13:19:19 by bursa]
Font rewrite, part 3. Note that Draw export and printing are broken by these changes. svn path=/import/netsurf/; revision=1519
Diffstat (limited to 'riscos/save_draw.c')
-rw-r--r--riscos/save_draw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/riscos/save_draw.c b/riscos/save_draw.c
index 51f6a0e36..e8b4dd34a 100644
--- a/riscos/save_draw.c
+++ b/riscos/save_draw.c
@@ -87,7 +87,7 @@ static bool draw_plot_polygon(int *p, unsigned int n, colour fill);
static bool draw_plot_fill(int x0, int y0, int x1, int y1, colour c);
static bool draw_plot_clip(int clip_x0, int clip_y0, int clip_x1,
int clip_y1);
-static bool draw_plot_text(int x, int y, struct font_data *font,
+static bool draw_plot_text(int x, int y, struct css_style *style,
const char *text, size_t length, colour bc, colour colour);
static bool draw_plot_disc(int x, int y, int radius, colour colour);
static bool draw_plot_bitmap(int x, int y, int width, int height,
@@ -858,9 +858,10 @@ bool draw_plot_clip(int clip_x0, int clip_y0, int clip_x1, int clip_y1)
* \param colour the text colour
* \return true on success, false on error (error got reported)
*/
-bool draw_plot_text(int x, int y, struct font_data *font,
+bool draw_plot_text(int x, int y, struct css_style *style,
const char *text, size_t length, colour bc, colour colour)
{
+#if 0
while (length != 0) {
size_t width, rolength, consumed;
const char *rofontname, *rotext;
@@ -912,6 +913,7 @@ bool draw_plot_text(int x, int y, struct font_data *font,
text += consumed;
length -= consumed;
}
+#endif
return true;
}