* x11.c *
***********************************************************/
-#ifdef USE_X11_LIBRARY
+#if defined(TARGET_X11)
#include "main.h"
#include "misc.h"
static void X11InitDisplay()
{
-#ifndef MSDOS
+#if !defined(PLATFORM_MSDOS)
XVisualInfo vinfo_template, *vinfo;
int num_visuals;
#endif
depth = DefaultDepth(display, screen);
cmap = DefaultColormap(display, screen);
-#ifndef MSDOS
+#if !defined(PLATFORM_MSDOS)
/* look for good enough visual */
vinfo_template.screen = screen;
vinfo_template.class = (depth == 8 ? PseudoColor : TrueColor);
printf("Sorry, cannot get appropriate visual.\n");
exit(-1);
}
-#endif /* !MSDOS */
+#endif /* !PLATFORM_MSDOS */
}
static DrawWindow X11InitWindow()
unsigned int border_width = 4;
XGCValues gc_values;
unsigned long gc_valuemask;
-#ifndef MSDOS
+#if !defined(PLATFORM_MSDOS)
XTextProperty windowName, iconName;
Pixmap icon_pixmap, iconmask_pixmap;
unsigned int icon_width, icon_height;
unsigned long pen_bg = BlackPixel(display,screen);
const int width = WIN_XSIZE, height = WIN_YSIZE;
-#ifndef MSDOS
+#if !defined(PLATFORM_MSDOS)
static struct IconFileInfo icon_pic =
{
"rocks_icon.xbm",
win_xpos, win_ypos, width, height, border_width,
pen_fg, pen_bg);
-#ifndef MSDOS
+#if !defined(PLATFORM_MSDOS)
proto_atom = XInternAtom(display, "WM_PROTOCOLS", FALSE);
delete_atom = XInternAtom(display, "WM_DELETE_WINDOW", FALSE);
if ((proto_atom != None) && (delete_atom != None))
pix[PIX_DB_BACK] = *backbuffer; /* 'backbuffer' is off-screen buffer */
}
-#endif /* USE_X11_LIBRARY */
+#endif /* TARGET_X11 */