summaryrefslogtreecommitdiff
path: root/src/drv
diff options
context:
space:
mode:
authorscuri <scuri>2010-06-13 05:26:57 +0000
committerscuri <scuri>2010-06-13 05:26:57 +0000
commit62d214b0afe2afe4d2a39bcba4ccff5595ef4593 (patch)
treea099d7889d04cd05c2690fe5444114eec007ae7d /src/drv
parent6cc4fd9f87137f98096cb53c6fbccd9e45b06d03 (diff)
*** empty log message ***
Diffstat (limited to 'src/drv')
-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;
}