*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
/*
* AllPlanes.c - the client side interface to the SUN_ALLPLANES extension.
*/
#define NEED_EVENTS
#define NEED_REPLIES
#include <stdio.h>
NULL, /* create_gc */
NULL, /* copy_gc */
NULL, /* flush_gc */
NULL, /* free_gc */
NULL, /* create_font */
NULL, /* free_font */
close_display, /* close_display */
NULL, /* wire_to_event */
NULL, /* event_to_wire */
NULL, /* error */
NULL, /* error_string */
};
static
static
/**********************************************************************/
int *event_basep,
int *error_basep)
{
if (XextHasExtension(info)) {
return True;
} else {
return False;
}
}
int *major_versionp,
int *minor_versionp)
{
SyncHandle();
return 0;
}
SyncHandle();
return 1;
}
void
Drawable d,
int n_points,
int mode) /* CoordMode */
{
long nbytes;
int n;
int xoff,
yoff;
while (n_points) {
n = n_points;
nbytes = ((long) n) << 2;
if (nbytes > 4) {
}
} else {
}
n_points -= n;
points += n;
pptr++;
}
} else
points += n;
}
SyncHandle();
}
void
Drawable d,
int npoints,
int mode)
{
long len;
/* each point is 2 16-bit integers */
SyncHandle();
}
void
Drawable d,
int nsegments)
{
long len;
int n;
while (nsegments) {
n = nsegments;
len = ((long) n) << 1;
len = ((long) n) << 1;
}
len <<= 2;
nsegments -= n;
segments += n;
}
SyncHandle();
}
void
Drawable d,
int n_rects)
{
long len;
int n;
while (n_rects) {
n = n_rects;
len = ((long) n) << 1;
len = ((long) n) << 1;
}
len <<= 2;
n_rects -= n;
rects += n;
}
SyncHandle();
}
void
Drawable d,
int n_rects)
{
long len;
int n;
while (n_rects) {
n = n_rects;
len = ((long) n) << 1;
len = ((long) n) << 1;
}
len <<= 2;
n_rects -= n;
rectangles += n;
}
SyncHandle();
}