Fix: SE015 Problem: X11 port bombs out with a Divide by zero/Floating point exception if no tile file is selected. Compatible with: Slash'EM 0.0.5E4 Author: J. Ali Harlow, ali@avrc.city.ac.uk Date: 22 Oct 1999 *** win/X11/winmap.c.orig Fri Jul 30 14:19:45 1999 --- win/X11/winmap.c Fri Oct 22 18:04:13 1999 *************** *** 255,264 **** Display *dpy = XtDisplay(toplevel); unsigned int width, height; height = tile_height * ((tile_count+tiles_per_line-1)/tiles_per_line); width = tile_width * tiles_per_line; - - if (tile_image == 0) return; /* no tiles */ tile_pixmap = XCreatePixmap(dpy, XtWindow(toplevel), width, --- 255,264 ---- Display *dpy = XtDisplay(toplevel); unsigned int width, height; + if (tile_image == 0) return; /* no tiles */ + height = tile_height * ((tile_count+tiles_per_line-1)/tiles_per_line); width = tile_width * tiles_per_line; tile_pixmap = XCreatePixmap(dpy, XtWindow(toplevel), width,