summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscuri <scuri>2011-09-27 19:06:19 +0000
committerscuri <scuri>2011-09-27 19:06:19 +0000
commit18dc8b841de3c7acf274fe4a2fb21a37091c6cb0 (patch)
tree5561e206f2bf9d3dba3f9d3c8dcc076dfe0e97f2 /src
parent6b4dae19b6770b5b151afed4548228488e4ad771 (diff)
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/cd.c3
-rw-r--r--src/drv/cdgl.c3
-rw-r--r--src/svg/cdsvg.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/cd.c b/src/cd.c
index f833037..1c6eb51 100644
--- a/src/cd.c
+++ b/src/cd.c
@@ -636,7 +636,8 @@ int cdCanvasYAxisMode(cdCanvas* canvas, int invert)
return canvas->invert_yaxis;
old_invert_yaxis = canvas->invert_yaxis;
- canvas->invert_yaxis = invert;
+ if (!(canvas->context->caps & CD_CAP_YAXIS))
+ canvas->invert_yaxis = invert;
return old_invert_yaxis;
}
diff --git a/src/drv/cdgl.c b/src/drv/cdgl.c
index deb7704..d88851f 100644
--- a/src/drv/cdgl.c
+++ b/src/drv/cdgl.c
@@ -441,8 +441,7 @@ static int sGetFontFileName(const char *font_name, int bold, int italic, char* f
{
if (cdStrEqualNoCasePartial(szName, localFontName))
{
- //"%s/%s.ttf"
- sprintf(fileName, "%s\\%s", sGetFontDir(), szData);
+ sprintf(fileName, "%s\\%s", sGetFontDir(), szData); // szData already includes file extension
bResult = 1;
break;
}
diff --git a/src/svg/cdsvg.c b/src/svg/cdsvg.c
index ca495e3..6f78ca3 100644
--- a/src/svg/cdsvg.c
+++ b/src/svg/cdsvg.c
@@ -1338,7 +1338,7 @@ static void cdinittable(cdCanvas* canvas)
static cdContext cdSVGContext =
{
- CD_CAP_ALL & ~(CD_CAP_CLEAR | CD_CAP_PLAY | CD_CAP_PALETTE |
+ CD_CAP_ALL & ~(CD_CAP_CLEAR | CD_CAP_PLAY | CD_CAP_PALETTE | CD_CAP_YAXIS |
CD_CAP_REGION | CD_CAP_IMAGESRV | CD_CAP_WRITEMODE |
CD_CAP_FONTDIM | CD_CAP_TEXTSIZE |
CD_CAP_GETIMAGERGB),