summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2005-01-03 01:06:35 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2005-01-03 01:06:35 +0000
commitc4d739517989871ad786fd0f5e0ae6a683f7e92f (patch)
treea508712492cb336e5e14d2a672d7abbc9918e04f
parentf4149e9970ced64f8eb2e92a115ea87174de2747 (diff)
xc/lib/XprintAppUtil/xpapputil.cXORG-6_8_99_2XORG-6_8_99_1
xc/lib/XprintAppUtil/xpapputil.h xc/lib/XprintUtil/xprintutil.c xc/lib/XprintUtil/xprintutil.h xc/programs/glxgears/glxgears.c xc/programs/xdbedizzy/xdbedizzy.c xc/programs/xedit/Xedit-xprint.ad xc/programs/xedit/commands.c xc/programs/xlogo/print.c xc/programs/xlsfonts/xlsfonts.c xc/programs/xlsfonts/xlsfonts.man xc/programs/xlsfonts/xlsfonts.sgml xc/programs/xman/Xman-xprint.ad xc/programs/xman/handler.c xc/programs/xman/print.c xc/programs/xman/print.h xc/programs/xmore/XMore.ad xc/programs/xmore/print.c xc/programs/xmore/print.h xc/programs/xmore/printdialog.c xc/programs/xmore/printdialog.h xc/programs/xmore/printdialogprivates.h xc/programs/xmore/xmore.c xc/programs/xphelloworld/xpawhelloworld/xpawhelloworld.c xc/programs/xphelloworld/xphelloworld/xphelloworld.c xc/programs/xphelloworld/xpsimplehelloworld/xpsimplehelloworld.c xc/programs/xphelloworld/xpxmhelloworld/xpxmhelloworld.c xc/programs/xphelloworld/xpxthelloworld/xpxthelloworld.c xc/programs/xplsprinters/xplsprinters.c //bugs.freedesktop.org/show_bug.cgi?id=1706) attachment #1615 (https://bugs.freedesktop.org/attachment.cgi?id=1615): XprintUtils 2004/Q3 update. This adds various new features to the XprintUtils library including support for page resolutions where X_resolution!=Y_resolution, listfonts-mode control and initial framework for the COLORSPACE extension. Patch by Roland Mainz <roland.mainz@nrubsig.org> and Julien Lafon <julien.lafon@gmail.com>.
-rw-r--r--print.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/print.c b/print.c
index e9da7f4..20cdeea 100644
--- a/print.c
+++ b/print.c
@@ -161,7 +161,8 @@ void DoPrint(Widget toplevel, const char *printername, const char *toFile)
int plist_count; /* number of entries in |plist|-array */
Display *pdpy = NULL;
XPContext pcontext = None;
- long dpi = 0;
+ long dpi_x = 0L,
+ dpi_y = 0L;
if (apd->isPrinting) {
fprintf(stderr, "%s: Already busy with printing.\n", ProgramName);
@@ -196,7 +197,7 @@ void DoPrint(Widget toplevel, const char *printername, const char *toFile)
XpSetContext(pdpy, pcontext);
/* Get default printer resolution */
- if (XpuGetResolution(pdpy, pcontext, &dpi) != 1) {
+ if (XpuGetResolution(pdpy, pcontext, &dpi_x, &dpi_y) != 1) {
fprintf(stderr, "%s: No default resolution for printer '%s'\n", ProgramName, printername);
XpuClosePrinterDisplay(pdpy, pcontext);
return;