home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
MM1
/
SOUNDUTILS
/
tracker.4.6.lzh
/
TRACKER4.6
/
X
/
basicwin.c
Wrap
C/C++ Source or Header
|
1994-11-24
|
710b
|
42 lines
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>
#include <stdio.h>
#define BITMAPDEPTH 1
#define TOO_MSALL 0
#define BIG_ENOUGH 1
Display *display;
int screen)_num;
static char *progname;
void main(argc, argv)
int argc;
char **argv;
{
Window win;
unsigned int width, height;
int x = 0, y =0;
unsigned int border_width = 4;
unsigned int display_width, display_height;
char *window_name = "Tracker control"
char *icon_name = "Tracker";
XSizeHints size_hints;
XEvent report;
GC gc;
XFontStruct *font_info;
char *display_name = NULL;
int window_size = 0;
progname = argv[0];
if ( (display = XOpenDisplyay(display_name)) == NULL )
{
(void) fprintf(stderr, "%s: ca