1568N/Aindex 37671e4..6d34ad3 100644
535N/A@@ -17,6 +17,7 @@ libXp_la_SOURCES = \
535N/A+/* $XConsortium:
XpDpi.c /main/4 1996/12/04 10:24:31 lehors $ */
535N/A+/******************************************************************************
535N/A+ ******************************************************************************
535N/A+ ** (c) Copyright 1996 Hewlett-Packard Company
535N/A+ ** (c) Copyright 1996 International Business Machines Corp.
943N/A+ ** (c) Copyright 1996, Oracle
and/or its affiliates. All rights reserved.
535N/A+ ** (c) Copyright 1996 Novell, Inc.
535N/A+ ** (c) Copyright 1996 Digital Equipment Corp.
535N/A+ ** (c) Copyright 1996 Fujitsu Limited
535N/A+ ** (c) Copyright 1996 Hitachi, Ltd.
535N/A+ ** Permission is hereby granted, free of charge, to any person obtaining a copy
535N/A+ ** of this software and associated documentation files (the "Software"), to deal
535N/A+ ** in the Software without restriction, including without limitation the rights
535N/A+ ** to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell
535N/A+ ** copies of the Software, and to permit persons to whom the Software is
535N/A+ ** furnished to do so, subject to the following conditions:
535N/A+ ** The above copyright notice and this permission notice shall be included in
535N/A+ ** all copies or substantial portions of the Software.
535N/A+ ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
535N/A+ ** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
535N/A+ ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
535N/A+ ** COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
535N/A+ ** IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
535N/A+ ** CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
535N/A+ ** Except as contained in this notice, the names of the copyright holders shall
535N/A+ ** not be used in advertising or otherwise to promote the sale, use or other
535N/A+ ** dealings in this Software without prior written authorization from said
535N/A+ ******************************************************************************
535N/A+ *****************************************************************************/
535N/A+#define X_INCLUDE_PWD_H
535N/A+#define XOS_USE_XLIB_LOCKING
535N/A+ xPrintClientDpiReq *req;
535N/A+ xPrintClientDpiReply rep;
535N/A+ XExtDisplayInfo *info = (XExtDisplayInfo *) xp_find_display (dpy);
535N/A+ short dpi = (short)client_dpi;
535N/A+ if (XpCheckExtInit(dpy, XP_SECOND_RELEASE) == -1)
535N/A+ return (False); /* NoSuchExtension */
535N/A+ GetReq(PrintClientDpi,req);
535N/A+ req->reqType = info->codes->major_opcode;
535N/A+ req->printReqType = X_PrintClientDpi;
535N/A+ req->clientDPI = (CARD16) dpi;
535N/A+ if (! _XReply (dpy, (xReply *) &rep, 0, xTrue)) {
535N/A+ * Bug 4402782: Add Sun specific propietary call until
X.Org takes the
535N/A+ return XpClientDPI(dpy, client_dpi);
1568N/A@@ -103,6 +103,7 @@ static XEXT_GENERATE_ERROR_STRING (XpError, xp_extension_name,
1568N/A static XPrintLocalExtensionVersion xpprintversions[] = {{XP_ABSENT,0,0},
1568N/A+ {XP_PRESENT, XP_PROTO_MAJOR, 0},
1568N/A {XP_PRESENT, XP_PROTO_MAJOR, XP_PROTO_MINOR}};