summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscuri <scuri>2009-06-23 22:12:39 +0000
committerscuri <scuri>2009-06-23 22:12:39 +0000
commite44e028c101c1f7ede1a6ba9d3ab25c64e5d8392 (patch)
tree609c0bd702f542d0031d321ce019129f15818cb7 /src
parentf658209d25477c490bf1892e68a0fd1384c1dded (diff)
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/drv/cdirgb.c2
-rw-r--r--src/sim/sim_text.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/drv/cdirgb.c b/src/drv/cdirgb.c
index 2666a5a..7f6f64b 100644
--- a/src/drv/cdirgb.c
+++ b/src/drv/cdirgb.c
@@ -493,7 +493,7 @@ static void irgbClipText(cdCtxCanvas *ctxcanvas, int x, int y, const char *s, in
slot = face->glyph;
/* move the reference point to the baseline-left */
- simGetPenPos(simulation->canvas, x, y, s, strlen(s), &matrix, &pen);
+ simGetPenPos(simulation->canvas, x, y, s, len, &matrix, &pen);
while(i<len)
{
diff --git a/src/sim/sim_text.c b/src/sim/sim_text.c
index afc7cde..05789b1 100644
--- a/src/sim/sim_text.c
+++ b/src/sim/sim_text.c
@@ -386,7 +386,7 @@ void cdtextSIM(cdCtxCanvas* ctxcanvas, int x, int y, const char* s, int len)
y = _cdInvertYAxis(canvas, y); /* y is already inverted, invert back to cartesian space */
/* move the reference point to the baseline-left */
- simGetPenPos(simulation->canvas, x, y, s, strlen(s), &matrix, &pen);
+ simGetPenPos(simulation->canvas, x, y, s, len, &matrix, &pen);
while(i<len)
{