-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.c
32 lines (25 loc) · 931 Bytes
/
globals.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* Copyright (c) 1987,1989 IBM Corporation
* Author: Bruce Lucas (with help from Daniel Hu, Mickey Coggins,
* and Bob Pearson for the X11 conversion)
*
* Revision History:
*
*/
#include <X11/Xlib.h>
#include <stdio.h>
#include "debug.h"
#include "extern.h"
/*
* globals
*/
float gcp = 0.5; /* gamma correction parameter */
int height=0, width=0; /* main window dimensions */
char *dpy_name = NULL; /* X server to connect to */
char title[200]; /* window title */
char table[256]; /* map from dither indices to X pixel values */
int progress; /* rows availiable so far */
Display *dpy; /* display we're talking to */
Window win, iwin; /* main, icon windows */
Pixmap pixmap, ipixmap; /* pixmaps for the image and for the icon */
GC gc; /* a graphics context to use */