summaryrefslogtreecommitdiff
path: root/cd/test/cdtest
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 01:48:52 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 01:50:25 +0200
commite9a184546b18cf3b796bd560561f312934004c54 (patch)
treeaa785af9a8d03f8ce276c9e9ecec78397005ec22 /cd/test/cdtest
parent92efe73791d0998536042bfab5a1babc67d168c7 (diff)
Upgrading to CD 5.4 - and cleaning up.
Diffstat (limited to 'cd/test/cdtest')
-rwxr-xr-xcd/test/cdtest/cdtest.c2
-rwxr-xr-xcd/test/cdtest/drivers.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cd/test/cdtest/cdtest.c b/cd/test/cdtest/cdtest.c
index 1e6375b..536cfc2 100755
--- a/cd/test/cdtest/cdtest.c
+++ b/cd/test/cdtest/cdtest.c
@@ -229,7 +229,7 @@ void CDTestInit(void)
if (use_contextplus)
{
-#ifdef USE_GDIPLUS
+#ifdef USE_CONTEXTPLUS
cdInitContextPlus();
#endif
}
diff --git a/cd/test/cdtest/drivers.c b/cd/test/cdtest/drivers.c
index dd23331..2387741 100755
--- a/cd/test/cdtest/drivers.c
+++ b/cd/test/cdtest/drivers.c
@@ -211,7 +211,7 @@ static int fSVG(void)
if (IupGetFile(filename)>=0)
{
- sprintf(data, "%s -s%d", filename, (int)(ctgc.res * 25.4));
+ sprintf(data, "%s %gx%g %g", filename, ((double)ctgc.w)/ctgc.res, ((double)ctgc.h)/ctgc.res, ctgc.res);
return SaveCanvas("CD_SVG", CD_SVG, data);
}