summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cd_text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cd_text.c b/src/cd_text.c
index 32b0645..3a9eaa1 100644
--- a/src/cd_text.c
+++ b/src/cd_text.c
@@ -292,9 +292,6 @@ char* cdCanvasNativeFont(cdCanvas* canvas, const char* font)
strcpy(native_font, canvas->native_font);
- if (!font || font[0] == 0)
- return native_font;
-
if (font == (char*)CD_QUERY)
{
char style[200] = " ";
@@ -311,6 +308,9 @@ char* cdCanvasNativeFont(cdCanvas* canvas, const char* font)
return native_font;
}
+ if (!font || font[0] == 0)
+ return native_font;
+
if (canvas->cxNativeFont)
{
if (canvas->cxNativeFont(canvas->ctxcanvas, font))