~ubuntu-branches/ubuntu/precise/xscreensaver/precise

« back to all changes in this revision

Viewing changes to hacks/glx/spheremonics.c

  • Committer: Bazaar Package Importer
  • Author(s): Tormod Volden
  • Date: 2011-04-22 23:07:13 UTC
  • mfrom: (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 41.
  • Revision ID: james.westby@ubuntu.com-20110422230713-wcixfinu45mm7vsx
Tags: 5.13-1
* New upstream version 5.13
  - Passwords that contain UTF-8 non-Latin1 chars are now typeable
  - pt_BR translation (thanks Sérgio Cipolla!) (Closes: #586230)
  - Fix memory leak in gltext (LP: #768032)
* Build without gdm and libgnome2-dev (Closes: #618165)
* Add Suggests on gdm3 or kdm-gdmcompat because gdmflexiserver
  can be used for the "New Login" functionality (see bug #304406)
* Remove obsolete gdmflexiserver options
* xscreensaver.desktop changes:
  - Do not set StartupNotify.
  - Do not specify svg icon. Closes: #618723 (LP: #603222)
* Fix installation path for xscreensaver-daemon.desktop 
* debian/xscreensaver.preinst: Check version before
  deleting obsolete configuration files (Closes: #588288)
* Bump Standards-Version to 3.9.2 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
302
302
static void
303
303
draw_bounding_box (ModeInfo *mi)
304
304
{
305
 
  spheremonics_configuration *cc = &ccs[MI_SCREEN(mi)];
 
305
  /* spheremonics_configuration *cc = &ccs[MI_SCREEN(mi)]; */
306
306
 
307
307
  static const GLfloat c1[4] = { 0.2, 0.2, 0.6, 1.0 };
308
308
  static const GLfloat c2[4] = { 1.0, 0.0, 0.0, 1.0 };
309
309
  int wire = MI_IS_WIREFRAME(mi);
310
310
 
311
 
  GLfloat x1 = cc->bbox[0].x;
312
 
  GLfloat y1 = cc->bbox[0].y;
313
 
  GLfloat z1 = cc->bbox[0].z;
314
 
  GLfloat x2 = cc->bbox[1].x;
315
 
  GLfloat y2 = cc->bbox[1].y;
316
 
  GLfloat z2 = cc->bbox[1].z;
 
311
  GLfloat x1,y1,z1,x2,y2,z2;
317
312
 
318
 
#if 1
 
313
# if 0
 
314
  x1 = cc->bbox[0].x;
 
315
  y1 = cc->bbox[0].y;
 
316
  z1 = cc->bbox[0].z;
 
317
  x2 = cc->bbox[1].x;
 
318
  y2 = cc->bbox[1].y;
 
319
  z2 = cc->bbox[1].z;
 
320
# else
319
321
  x1 = y1 = z1 = -0.5;
320
322
  x2 = y2 = z2 =  0.5;
321
 
#endif
 
323
# endif
322
324
 
323
325
  if (do_bbox && !wire)
324
326
    {
690
692
      fprintf(stderr, "%s: out of memory\n", progname);
691
693
      exit(1);
692
694
    }
693
 
 
694
 
    cc = &ccs[MI_SCREEN(mi)];
695
695
  }
696
696
 
697
697
  cc = &ccs[MI_SCREEN(mi)];