summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drv/cdpicture.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drv/cdpicture.c b/src/drv/cdpicture.c
index ff4f532..a5533b2 100644
--- a/src/drv/cdpicture.c
+++ b/src/drv/cdpicture.c
@@ -360,6 +360,15 @@ void primUpdateAttrib_Text(tPrimNode *prim, cdCanvas *canvas)
cdCanvasFont(canvas, prim->attrib.text.font_type_face, prim->attrib.text.font_style, prim->attrib.text.font_size);
}
+static int cdfont(cdCtxCanvas *ctxcanvas, const char *type_face, int style, int size)
+{
+ (void)ctxcanvas;
+ (void)type_face;
+ (void)style;
+ (void)size;
+ return 1;
+}
+
static void cdclear(cdCtxCanvas *ctxcanvas)
{
tPrimNode *prim;
@@ -1092,6 +1101,7 @@ static void cdcreatecanvas(cdCanvas *canvas, void *data)
static void cdinittable(cdCanvas* canvas)
{
+ canvas->cxFont = cdfont;
canvas->cxClear = cdclear;
canvas->cxPixel = cdpixel;
canvas->cxLine = cdline;