#endif
int screen_width, screen_height;
int win_xpos, win_ypos;
- unsigned long pen_fg = WhitePixel(display,screen);
- unsigned long pen_bg = BlackPixel(display,screen);
+ unsigned long pen_fg = WhitePixel(display, screen);
+ unsigned long pen_bg = BlackPixel(display, screen);
const int width = video.width, height = video.height;
int i;
inline void X11DestroyImage(XImage *ximage)
{
+#if defined(TARGET_X11_NATIVE)
/* this seems to be needed for OS/2, but does not hurt on other platforms */
if (ximage->data != NULL)
{
free(ximage->data);
ximage->data = NULL;
}
+#endif /* TARGET_X11_NATIVE */
XDestroyImage(ximage);
}