colors[0].pixel = get_pixel_resource (st->dpy, xgwa->colormap,
"background", "Background");
- make_random_colormap (st->dpy, xgwa->visual, xgwa->colormap,
+ make_random_colormap (xgwa->screen, xgwa->visual, xgwa->colormap,
colors+1, &ncolors, True, True, 0, True);
if (ncolors < 1)
{
setup_display (struct state *st)
{
XWindowAttributes xgwa;
- Colormap cmap;
int cell_size = get_integer_resource (st->dpy, "size", "Integer");
int osize, alloc_size, oalloc;
st->mindeathspeed *= st->diaglim;
st->maxdeathspeed *= st->diaglim;
- cmap = xgwa.colormap;
-
st->windowWidth = xgwa.width;
st->windowHeight = xgwa.height;
"*originalcolors: false",
"*memThrottle: 22M", /* don't malloc more than this much.
Scale the pixels up if necessary. */
+#ifdef USE_IPHONE
+ "*ignoreRotation: True",
+#endif
0
};