*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
glTranslatef (nn->x, nn->y, 0);
glScalef (1.0 / w * s, 1.0 / h * s, 1);
glTranslatef (nn->x, nn->y, 0);
glScalef (1.0 / w * s, 1.0 / h * s, 1);
nn->rot += (nn->rot < 0 ? -1 : 1);
glRotatef (nn->rot, 0, 0, 1);
nn->rot += (nn->rot < 0 ? -1 : 1);
glRotatef (nn->rot, 0, 0, 1);
find_node (ModeInfo *mi, GLfloat x, GLfloat y)
{
voronoi_configuration *vp = &vps[MI_SCREEN(mi)];
find_node (ModeInfo *mi, GLfloat x, GLfloat y)
{
voronoi_configuration *vp = &vps[MI_SCREEN(mi)];
- if (!vps) {
- vps = (voronoi_configuration *)
- calloc (MI_NUM_SCREENS(mi), sizeof (voronoi_configuration));
- if (!vps) {
- fprintf(stderr, "%s: out of memory\n", progname);
- exit(1);
- }
- }