summaryrefslogtreecommitdiff
path: root/Xprint/mediaSizes.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:22 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:22 +0000
commitd568221710959cf7d783e6ff0fb80fb43a231124 (patch)
tree8d6f039393294c6ffac8533639afdebe5d68bfc1 /Xprint/mediaSizes.c
parent9508a382f8a9f241dab097d921b6d290c1c3a776 (diff)
Diffstat (limited to 'Xprint/mediaSizes.c')
-rw-r--r--Xprint/mediaSizes.c28
1 files changed, 9 insertions, 19 deletions
diff --git a/Xprint/mediaSizes.c b/Xprint/mediaSizes.c
index eaff20a88..7bb08b412 100644
--- a/Xprint/mediaSizes.c
+++ b/Xprint/mediaSizes.c
@@ -30,6 +30,8 @@ not be used in advertising or otherwise to promote the sale, use or other
dealings in this Software without prior written authorization from said
copyright holders.
*/
+/* $XFree86: xc/programs/Xserver/Xprint/mediaSizes.c,v 1.5 2001/12/21 21:02:05 dawes Exp $ */
+
/*******************************************************************
**
** *********************************************************
@@ -62,14 +64,8 @@ copyright holders.
#include "scrnintstr.h"
#include "fontstruct.h"
-#define _XP_PRINT_SERVER_
-#include "Printstr.h"
-#undef _XP_PRINT_SERVER_
-
#include "DiPrint.h"
-#include "AttrValid.h"
-
-extern XpContextPtr XpContextOfClient();
+#include "attributes.h"
typedef struct {
XpOid page_size;
@@ -149,8 +145,7 @@ static PageDimensionsRec PageDimensions[] =
* attributes pools have been validated.
*/
int
-XpGetResolution(
- XpContextPtr pContext)
+XpGetResolution(XpContextPtr pContext)
{
unsigned long resolution;
@@ -190,8 +185,7 @@ XpGetResolution(
* attributes pools have been validated.
*/
XpOid
-XpGetContentOrientation(
- XpContextPtr pContext)
+XpGetContentOrientation(XpContextPtr pContext)
{
XpOid orientation;
@@ -421,7 +415,7 @@ XpGetMediumMillimeters(
float *width, /* return */
float *height) /* return */
{
- int i;
+ unsigned i;
*width = *height = 0;
for(i = 0; i < XpNumber(PageDimensions); i++)
@@ -745,9 +739,7 @@ XpGetMaxWidthHeightRes(
}
FontResolutionPtr
-XpGetClientResolutions(client, num)
- ClientPtr client;
- int *num;
+XpGetClientResolutions(ClientPtr client, int *num)
{
static struct _FontResolution res;
int resolution = XpGetResolution(XpContextOfClient(client));
@@ -763,15 +755,13 @@ XpGetClientResolutions(client, num)
}
-void XpSetFontResFunc(client)
- ClientPtr client;
+void XpSetFontResFunc(ClientPtr client)
{
client->fontResFunc = XpGetClientResolutions;
}
-void XpUnsetFontResFunc(client)
- ClientPtr client;
+void XpUnsetFontResFunc(ClientPtr client)
{
client->fontResFunc = NULL;
}