XDPSpreview.c revision 824
830N/A#include "XDPSpwraps.h"
830N/A#include "dpsXcommonI.h"
830N/A#define SELECT_TYPE int *
830N/Astatic void FillPixmapWithGray(
830N/A double pixelsPerPoint,
p->nestingLevel = 0;
p->binaryCount = 0;
int count;
unsigned len;
return NULL;
if (p->binaryCount != 0) {
} else if (!p->continuedLine) {
p->nestingLevel++;
if (p->nestingLevel == 0) {
return NULL;
else p->nestingLevel--;
return buf;
int depth,
double pixelsPerPoint,
Pixmap p;
pixelsPerPoint <= 0) {
return dps_status_illegal_value;
return dps_status_failure;
else return dps_status_no_extension;
int nestingLevel = 0;
unsigned long binaryCount = 0;
unsigned len;
return dps_status_failure;
if (binaryCount != 0) {
} else if (!continuedLine) {
nestingLevel++;
nestingLevel--;
} else if (nestingLevel == 0) {
return dps_status_failure;
} else return dps_status_failure;
bb->x = (int) x;
bb->y = (int) y;
return dps_status_success;
typedef struct _StatusInfo {
} StatusInfo;
static void SetUpStatusVariables(
unsigned long startReq,
static void SetEndReqNum(
unsigned long endReq)
static void HandlePreviewStatus(
int status)
unsigned long serial;
static int FinishUp(
static char restorebuf[] =
int err;
else return dps_status_success;
int status;
int drawableHeight,
int drawableDepth,
double pixelsPerPoint,
unsigned int flags = 0;
int status;
int doublings;
int ms;
pixelsPerPoint <= 0) {
return dps_status_illegal_value;
return dps_status_no_extension;
if (!waitForCompletion) {
if (!inited) {
if (createMask) {
if (!waitForCompletion) {
doublings = 0;
doublings++;
return dps_status_imaging_incomplete;
static void FillPixmapWithGray(
double pixelsPerPoint,
XGCValues v;
if (createMask) {