diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cd.c | 3 | ||||
-rw-r--r-- | src/drv/cdgl.c | 3 | ||||
-rw-r--r-- | src/svg/cdsvg.c | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -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), |