2003-09-02 05:51:35 -04:00
|
|
|
/* display.c
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright 1990, 1991, 1992, 1993, 1994, 1995, Oliver Laumann, Berlin
|
|
|
|
* Copyright 2002, 2003 Sam Hocevar <sam@zoy.org>, Paris
|
|
|
|
*
|
|
|
|
* This software was derived from Elk 1.2, which was Copyright 1987, 1988,
|
|
|
|
* 1989, Nixdorf Computer AG and TELES GmbH, Berlin (Elk 1.2 has been written
|
|
|
|
* by Oliver Laumann for TELES Telematic Services, Berlin, in a joint project
|
|
|
|
* between TELES and Nixdorf Microprocessor Engineering, Berlin).
|
|
|
|
*
|
|
|
|
* Oliver Laumann, TELES GmbH, Nixdorf Computer AG and Sam Hocevar, as co-
|
|
|
|
* owners or individual owners of copyright in this software, grant to any
|
|
|
|
* person or company a worldwide, royalty free, license to
|
|
|
|
*
|
|
|
|
* i) copy this software,
|
|
|
|
* ii) prepare derivative works based on this software,
|
|
|
|
* iii) distribute copies of this software or derivative works,
|
|
|
|
* iv) perform this software, or
|
|
|
|
* v) display this software,
|
|
|
|
*
|
|
|
|
* provided that this notice is not removed and that neither Oliver Laumann
|
|
|
|
* nor Teles nor Nixdorf are deemed to have made any representations as to
|
|
|
|
* the suitability of this software for any purpose nor are held responsible
|
|
|
|
* for any defects of this software.
|
|
|
|
*
|
|
|
|
* THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2003-08-19 15:19:38 -04:00
|
|
|
#include "xlib.h"
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
static int Display_Visit (Object *dp, int (*f)()) {
|
2003-08-19 15:19:38 -04:00
|
|
|
(*f)(&DISPLAY(*dp)->after);
|
2003-09-04 10:32:13 -04:00
|
|
|
return 0;
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
Generic_Predicate (Display)
|
|
|
|
|
|
|
|
Generic_Equal (Display, DISPLAY, dpy)
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static int Display_Print (Object d, Object port,
|
|
|
|
int raw, int depth, int length) {
|
2006-09-17 06:46:09 -04:00
|
|
|
Printf (port, "#[display %lu %s]",
|
|
|
|
(unsigned long)(uintptr_t)DISPLAY(d)->dpy,
|
2003-09-02 04:12:11 -04:00
|
|
|
DisplayString (DISPLAY(d)->dpy));
|
2003-09-04 10:32:13 -04:00
|
|
|
return 0;
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
Object Make_Display (int finalize, Display *dpy) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Object d;
|
|
|
|
|
|
|
|
d = Find_Object (T_Display, (GENERIC)dpy, Match_X_Obj);
|
|
|
|
if (Nullp (d)) {
|
2003-09-02 04:12:11 -04:00
|
|
|
d = Alloc_Object (sizeof (struct S_Display), T_Display, 0);
|
|
|
|
DISPLAY(d)->dpy = dpy;
|
|
|
|
DISPLAY(d)->free = 0;
|
|
|
|
DISPLAY(d)->after = False;
|
|
|
|
Register_Object (d, (GENERIC)dpy, finalize ? P_Close_Display :
|
|
|
|
(PFO)0, 1);
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
return d;
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Open_Display (int argc, Object *argv) {
|
2003-08-19 15:19:38 -04:00
|
|
|
register char *s;
|
|
|
|
Display *dpy;
|
|
|
|
|
|
|
|
if (argc == 1) {
|
2003-09-02 04:12:11 -04:00
|
|
|
if ((dpy = XOpenDisplay (Get_Strsym (argv[0]))) == 0)
|
|
|
|
Primitive_Error ("cannot open display ~s", argv[0]);
|
2003-08-19 15:19:38 -04:00
|
|
|
} else if ((dpy = XOpenDisplay ((char *)0)) == 0) {
|
2003-09-02 04:12:11 -04:00
|
|
|
s = XDisplayName ((char *)0);
|
|
|
|
Primitive_Error ("cannot open display ~s",
|
|
|
|
Make_String (s, strlen (s)));
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
return Make_Display (1, dpy);
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
Object P_Close_Display (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
register struct S_Display *p;
|
|
|
|
|
|
|
|
Check_Type (d, T_Display);
|
|
|
|
p = DISPLAY(d);
|
|
|
|
if (!p->free) {
|
2003-09-02 04:12:11 -04:00
|
|
|
Terminate_Group ((GENERIC)p->dpy);
|
|
|
|
XCloseDisplay (p->dpy);
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
Deregister_Object (d);
|
|
|
|
p->free = 1;
|
|
|
|
return Void;
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Default_Root_Window (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Make_Window (0, DISPLAY(d)->dpy,
|
2003-09-02 04:12:11 -04:00
|
|
|
DefaultRootWindow (DISPLAY(d)->dpy));
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Default_Colormap (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
register Display *dpy;
|
|
|
|
|
|
|
|
Check_Type (d, T_Display);
|
|
|
|
dpy = DISPLAY(d)->dpy;
|
|
|
|
return Make_Colormap (0, dpy, DefaultColormap (dpy, DefaultScreen (dpy)));
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Default_Gcontext (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
register Display *dpy;
|
|
|
|
|
|
|
|
Check_Type (d, T_Display);
|
|
|
|
dpy = DISPLAY(d)->dpy;
|
|
|
|
return Make_Gc (0, dpy, DefaultGC (dpy, DefaultScreen (dpy)));
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Default_Depth (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
register Display *dpy;
|
|
|
|
|
|
|
|
Check_Type (d, T_Display);
|
|
|
|
dpy = DISPLAY(d)->dpy;
|
|
|
|
return Make_Integer (DefaultDepth (dpy, DefaultScreen (dpy)));
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Default_Screen_Number (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Make_Integer (DefaultScreen (DISPLAY(d)->dpy));
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
int Get_Screen_Number (Display *dpy, Object scr) {
|
|
|
|
register int s;
|
2003-08-19 15:19:38 -04:00
|
|
|
|
|
|
|
if ((s = Get_Integer (scr)) < 0 || s > ScreenCount (dpy)-1)
|
2003-09-02 04:12:11 -04:00
|
|
|
Primitive_Error ("invalid screen number");
|
2003-08-19 15:19:38 -04:00
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Cells (Object d, Object scr) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Make_Integer (DisplayCells (DISPLAY(d)->dpy,
|
2003-09-02 04:12:11 -04:00
|
|
|
Get_Screen_Number (DISPLAY(d)->dpy, scr)));
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Planes (Object d, Object scr) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
2003-08-19 15:25:03 -04:00
|
|
|
return Make_Integer (DisplayPlanes (DISPLAY(d)->dpy,
|
2003-09-02 04:12:11 -04:00
|
|
|
Get_Screen_Number (DISPLAY(d)->dpy, scr)));
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_String (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
register char *s;
|
|
|
|
|
|
|
|
Check_Type (d, T_Display);
|
|
|
|
s = DisplayString (DISPLAY(d)->dpy);
|
|
|
|
return Make_String (s, strlen (s));
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Vendor (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
register char *s;
|
|
|
|
Object ret, name;
|
|
|
|
GC_Node;
|
|
|
|
|
|
|
|
Check_Type (d, T_Display);
|
|
|
|
s = ServerVendor (DISPLAY(d)->dpy);
|
|
|
|
name = Make_String (s, strlen (s));
|
|
|
|
GC_Link (name);
|
|
|
|
ret = Cons (Null, Make_Integer (VendorRelease (DISPLAY(d)->dpy)));
|
|
|
|
Car (ret) = name;
|
|
|
|
GC_Unlink;
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Protocol_Version (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Cons (Make_Integer (ProtocolVersion (DISPLAY(d)->dpy)),
|
2003-09-02 04:12:11 -04:00
|
|
|
Make_Integer (ProtocolRevision (DISPLAY(d)->dpy)));
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Screen_Count (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Make_Integer (ScreenCount (DISPLAY(d)->dpy));
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Image_Byte_Order (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Bits_To_Symbols ((unsigned long)ImageByteOrder (DISPLAY(d)->dpy),
|
2003-09-02 04:12:11 -04:00
|
|
|
0, Byte_Order_Syms);
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Bitmap_Unit (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Make_Integer (BitmapUnit (DISPLAY(d)->dpy));
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Bitmap_Bit_Order (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Bits_To_Symbols ((unsigned long)BitmapBitOrder (DISPLAY(d)->dpy),
|
2003-09-02 04:12:11 -04:00
|
|
|
0, Byte_Order_Syms);
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Bitmap_Pad (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Make_Integer (BitmapPad (DISPLAY(d)->dpy));
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Width (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Make_Integer (DisplayWidth (DISPLAY(d)->dpy,
|
2003-09-02 04:12:11 -04:00
|
|
|
DefaultScreen (DISPLAY(d)->dpy)));
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Height (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Make_Integer (DisplayHeight (DISPLAY(d)->dpy,
|
2003-09-02 04:12:11 -04:00
|
|
|
DefaultScreen (DISPLAY(d)->dpy)));
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Width_Mm (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Make_Integer (DisplayWidthMM (DISPLAY(d)->dpy,
|
2003-09-02 04:12:11 -04:00
|
|
|
DefaultScreen (DISPLAY(d)->dpy)));
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Height_Mm (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Make_Integer (DisplayHeightMM (DISPLAY(d)->dpy,
|
2003-09-02 04:12:11 -04:00
|
|
|
DefaultScreen (DISPLAY(d)->dpy)));
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Motion_Buffer_Size (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
return Make_Unsigned_Long (XDisplayMotionBufferSize (DISPLAY(d)->dpy));
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Flush_Output (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
XFlush (DISPLAY(d)->dpy);
|
|
|
|
return Void;
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_Display_Wait_Output (Object d, Object discard) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
Check_Type (discard, T_Boolean);
|
|
|
|
XSync (DISPLAY(d)->dpy, EQ(discard, True));
|
|
|
|
return Void;
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_No_Op (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
Check_Type (d, T_Display);
|
|
|
|
XNoOp (DISPLAY(d)->dpy);
|
|
|
|
return Void;
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_List_Depths (Object d, Object scr) {
|
2003-08-19 15:19:38 -04:00
|
|
|
int num;
|
2003-09-04 10:32:13 -04:00
|
|
|
register int *p, i;
|
2003-08-19 15:19:38 -04:00
|
|
|
Object ret;
|
|
|
|
|
|
|
|
Check_Type (d, T_Display);
|
|
|
|
if (!(p = XListDepths (DISPLAY(d)->dpy,
|
2003-09-02 04:12:11 -04:00
|
|
|
Get_Screen_Number (DISPLAY(d)->dpy, scr), &num)))
|
|
|
|
return False;
|
2003-08-19 15:19:38 -04:00
|
|
|
ret = Make_Vector (num, Null);
|
|
|
|
for (i = 0; i < num; i++)
|
2003-09-02 04:12:11 -04:00
|
|
|
VECTOR(ret)->data[i] = Make_Integer (p[i]);
|
2003-08-19 15:19:38 -04:00
|
|
|
XFree ((char *)p);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
static Object P_List_Pixmap_Formats (Object d) {
|
2003-08-19 15:19:38 -04:00
|
|
|
register XPixmapFormatValues *p;
|
|
|
|
int num;
|
2003-09-04 10:32:13 -04:00
|
|
|
register int i;
|
2003-08-19 15:19:38 -04:00
|
|
|
Object ret;
|
|
|
|
GC_Node;
|
|
|
|
|
|
|
|
Check_Type (d, T_Display);
|
|
|
|
if (!(p = XListPixmapFormats (DISPLAY(d)->dpy, &num)))
|
2003-09-02 04:12:11 -04:00
|
|
|
return False;
|
2003-08-19 15:19:38 -04:00
|
|
|
ret = Make_Vector (num, Null);
|
|
|
|
GC_Link (ret);
|
|
|
|
for (i = 0; i < num; i++) {
|
2003-09-02 04:12:11 -04:00
|
|
|
Object t;
|
2003-08-19 15:25:03 -04:00
|
|
|
|
2003-09-02 04:12:11 -04:00
|
|
|
t = P_Make_List (Make_Integer (3), Null);
|
|
|
|
VECTOR(ret)->data[i] = t;
|
|
|
|
Car (t) = Make_Integer (p[i].depth); t = Cdr (t);
|
|
|
|
Car (t) = Make_Integer (p[i].bits_per_pixel); t = Cdr (t);
|
|
|
|
Car (t) = Make_Integer (p[i].scanline_pad);
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|
|
|
|
GC_Unlink;
|
|
|
|
XFree ((char *)p);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2003-09-04 10:32:13 -04:00
|
|
|
void elk_init_xlib_display () {
|
2003-08-19 15:19:38 -04:00
|
|
|
T_Display = Define_Type (0, "display", NOFUNC, sizeof (struct S_Display),
|
2003-09-02 04:12:11 -04:00
|
|
|
Display_Equal, Display_Equal, Display_Print, Display_Visit);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Displayp, "display?", 1, 1, EVAL);
|
|
|
|
Define_Primitive (P_Open_Display, "open-display", 0, 1, VARARGS);
|
|
|
|
Define_Primitive (P_Close_Display, "close-display", 1, 1, EVAL);
|
|
|
|
Define_Primitive (P_Display_Default_Root_Window,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-default-root-window", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Default_Colormap,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-default-colormap", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Default_Gcontext,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-default-gcontext", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Default_Depth,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-default-depth", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Default_Screen_Number,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-default-screen-number", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Cells, "display-cells", 2, 2, EVAL);
|
|
|
|
Define_Primitive (P_Display_Planes, "display-planes", 2, 2, EVAL);
|
|
|
|
Define_Primitive (P_Display_String, "display-string", 1, 1, EVAL);
|
|
|
|
Define_Primitive (P_Display_Vendor, "display-vendor", 1, 1, EVAL);
|
|
|
|
Define_Primitive (P_Display_Protocol_Version,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-protocol-version", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Screen_Count,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-screen-count", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Image_Byte_Order,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-image-byte-order", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Bitmap_Unit,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-bitmap-unit", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Bitmap_Bit_Order,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-bitmap-bit-order", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Bitmap_Pad,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-bitmap-pad", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Width, "display-width", 1, 1, EVAL);
|
|
|
|
Define_Primitive (P_Display_Height, "display-height", 1, 1, EVAL);
|
|
|
|
Define_Primitive (P_Display_Width_Mm,"display-width-mm", 1, 1, EVAL);
|
|
|
|
Define_Primitive (P_Display_Height_Mm,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-height-mm", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Motion_Buffer_Size,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-motion-buffer-size", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Flush_Output,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-flush-output", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Display_Wait_Output,
|
2003-09-02 04:12:11 -04:00
|
|
|
"display-wait-output", 2, 2, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_No_Op, "no-op", 1, 1, EVAL);
|
|
|
|
Define_Primitive (P_List_Depths, "list-depths", 2, 2, EVAL);
|
|
|
|
Define_Primitive (P_List_Pixmap_Formats,
|
2003-09-02 04:12:11 -04:00
|
|
|
"list-pixmap-formats", 1, 1, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
}
|