diff options
author | scuri <scuri> | 2009-11-30 19:29:26 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-11-30 19:29:26 +0000 |
commit | 6417709d9f8412ab7bb8768d4eae44227d2807dc (patch) | |
tree | b845e119bbc5964a48ce23fd743c89a317c67048 | |
parent | efe09af4eef72f46dcaf50ced776ef7667a04087 (diff) |
Fixed: invalid memory access at CanvasFont in the PICTURE driver.
-rw-r--r-- | src/drv/cdpicture.c | 10 |
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; |