-/* xscreensaver, Copyright (c) 1991-2012 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1991-2014 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
#ifndef __JWXYZ_H__
#define __JWXYZ_H__
+extern void jwxyz_abort(const char *fmt, ...) __dead2;
+#define abort() jwxyz_abort("abort in %s:%d", __FUNCTION__, __LINE__)
+
typedef int Bool;
typedef int Status;
typedef void * XPointer;
#define DisplayHeight XDisplayHeight
#define XMaxRequestSize(dpy) (65535)
+#define ScreenCount(dpy) jwxyz_ScreenCount(dpy)
+extern int jwxyz_ScreenCount(Display *);
+
extern Display *jwxyz_make_display (void *nsview, void *cgc);
extern void jwxyz_free_display (Display *);
extern void *jwxyz_window_view (Window);
int, int, int, int,
void *cgc);
extern void jwxyz_mouse_moved (Display *, Window, int x, int y);
+extern void jwxyz_flush_context (Display *);
extern Window XRootWindow (Display *, int screen);
extern Screen *XDefaultScreenOfDisplay (Display *);
extern int visual_depth (Screen *, Visual *);
extern int visual_cells (Screen *, Visual *);
extern int visual_class (Screen *, Visual *);
+extern int get_bits_per_pixel (Display *, int);
// also declared in utils/grabclient.h
extern Bool use_subwindow_mode_p (Screen *, Window);
+
struct jwxyz_Visual {
VisualID visualid; /* visual id of this visual */
int class; /* class of screen (monochrome, etc.) */