summaryrefslogtreecommitdiff
path: root/framebuffer/fb_8bpp_plotters.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2009-02-20 09:51:21 +0000
committerVincent Sanders <vince@netsurf-browser.org>2009-02-20 09:51:21 +0000
commit0cecbe3cbcef566fb679aed5f0055397cb4c040c (patch)
tree82e0b523e73d5c069060b79b41d697839585b924 /framebuffer/fb_8bpp_plotters.c
parent8aa291df0f63bb152d6d2893f361f6ae06fe06d7 (diff)
downloadnetsurf-0cecbe3cbcef566fb679aed5f0055397cb4c040c.tar.gz
netsurf-0cecbe3cbcef566fb679aed5f0055397cb4c040c.tar.bz2
allow framebuffer port to use freetype2 library
svn path=/trunk/netsurf/; revision=6570
Diffstat (limited to 'framebuffer/fb_8bpp_plotters.c')
-rw-r--r--framebuffer/fb_8bpp_plotters.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/framebuffer/fb_8bpp_plotters.c b/framebuffer/fb_8bpp_plotters.c
index 087cf025b..1d0eccc83 100644
--- a/framebuffer/fb_8bpp_plotters.c
+++ b/framebuffer/fb_8bpp_plotters.c
@@ -127,6 +127,15 @@ static bool fb_8bpp_clg(colour c)
return true;
}
+#ifdef FB_USE_FREETYPE
+
+static bool fb_8bpp_text(int x, int y, const struct css_style *style,
+ const char *text, size_t length, colour bg, colour c)
+{
+ return false;
+
+}
+#else
static bool fb_8bpp_text(int x, int y, const struct css_style *style,
const char *text, size_t length, colour bg, colour c)
{
@@ -206,7 +215,7 @@ static bool fb_8bpp_text(int x, int y, const struct css_style *style,
free(buffer);
return true;
}
-
+#endif
static bool fb_8bpp_disc(int x, int y, int radius, colour c, bool filled)
{