diff options
Diffstat (limited to 'cd/src/drv/cd0prn.c')
-rwxr-xr-x | cd/src/drv/cd0prn.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cd/src/drv/cd0prn.c b/cd/src/drv/cd0prn.c index 429a392..fa313d8 100755 --- a/cd/src/drv/cd0prn.c +++ b/cd/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; } |