{ "-ball-color2",".ballColor2",XrmoptionSepArg, 0 },
{ "-grid-color", ".gridColor", XrmoptionSepArg, 0 },
{ "-shadow-color",".shadowColor",XrmoptionSepArg, 0 },
+ { "-background", ".boingBackground",XrmoptionSepArg, 0 },
+ { "-bg", ".boingBackground",XrmoptionSepArg, 0 },
};
static argtype vars[] = {
int lh, ls;
int y;
glLoadIdentity();
- gluOrtho2D (0, w, 0, h);
+ glOrtho (0, w, 0, h, -1, 1);
if (h > 500) lh = 4, ls = 4;
else if (h > 300) lh = 2, ls = 1;
fprintf(stderr, "%s: out of memory\n", progname);
exit(1);
}
-
- bp = &bps[MI_SCREEN(mi)];
}
bp = &bps[MI_SCREEN(mi)];
glPushMatrix ();
gltrackball_rotate (bp->trackball);
+ glRotatef(current_device_rotation(), 0, 0, 1);
glLightfv (GL_LIGHT0, GL_POSITION, bp->lightpos);