summaryrefslogtreecommitdiff
path: root/src/drv/cd0prn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drv/cd0prn.c')
-rw-r--r--src/drv/cd0prn.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/drv/cd0prn.c b/src/drv/cd0prn.c
index 429a392..fa313d8 100644
--- a/src/drv/cd0prn.c
+++ b/src/drv/cd0prn.c
@@ -6,12 +6,20 @@
#include <stdlib.h>
#include "cd.h"
+#include "cd_private.h"
#include "cdprint.h"
cdContext* cdContextPrinter(void)
{
+ if (cdUseContextPlus(CD_QUERY))
+ {
+ cdContext* ctx = cdGetContextPlus(CD_CTX_PRINTER);
+ if (ctx != NULL)
+ return ctx;
+ }
+
return NULL;
}