~ubuntu-branches/ubuntu/utopic/xscreensaver/utopic

« back to all changes in this revision

Viewing changes to hacks/glx/gears.c

  • Committer: Bazaar Package Importer
  • Author(s): Ted Gould
  • Date: 2008-06-17 09:41:41 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080617094141-0un910o2mu76ei4l
Tags: 5.05-1ubuntu1
* Added 70_demo_gtk_stfu_removal.patch to remove some more cases where
  the STFU macro is used such that when the #defines it's used on change
  the compile breaks.  Bad coding style.
* Removing 82_ubuntu-texturl-fridge.patch in favor of updating the
  53_XScreenSaver.ad.in.patch to include the Ubuntu branding instead
  of the Debian branding.  This should make merges easier as long as
  we use something smart like Bazaar.  Also the Debian version has lots
  of good changes like making it work with /etc/alternates which we
  didn't have.
* Removing 54_driver_demogtk.patch as it was merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* gears, Copyright (c) 2007 Jamie Zawinski <jwz@jwz.org>
 
1
/* gears, Copyright (c) 2007-2008 Jamie Zawinski <jwz@jwz.org>
2
2
 *
3
3
 * Permission to use, copy, modify, distribute, and sell this software and its
4
4
 * documentation for any purpose is hereby granted without fee, provided that
124
124
    }
125
125
  else if (event->xany.type == ButtonPress &&
126
126
           (event->xbutton.button == Button4 ||
127
 
            event->xbutton.button == Button5))
 
127
            event->xbutton.button == Button5 ||
 
128
            event->xbutton.button == Button6 ||
 
129
            event->xbutton.button == Button7))
128
130
    {
129
131
      gltrackball_mousewheel (bp->trackball, event->xbutton.button, 10,
130
132
                              !!event->xbutton.state);
690
692
  g4->y = 0;
691
693
  g4->th = -g3->th;
692
694
 
 
695
  /* rotate central gear 1/2 tooth-size if odd number of teeth */
 
696
  if (g4->nteeth & 1)
 
697
    g4->th -= (180.0 / g4->nteeth);
 
698
 
693
699
  g0->inverted_p  = True;
694
700
  g0->x           = 0;
695
701
  g0->y           = 0;
696
 
  g0->nteeth      = g4->nteeth * 3;
697
 
  g0->r           = g4->r * 3.05;
 
702
  g0->nteeth      = g1->nteeth * 3;
 
703
  g0->r           = g1->r * 3.05;
698
704
  g0->inner_r     = g0->r * 0.8;
699
705
  g0->inner_r2    = 0;
700
706
  g0->inner_r3    = 0;
701
 
  g0->th          = -(g4->th - (180 / g0->nteeth));
702
 
  g0->ratio       = g4->ratio / 3;
 
707
  g0->th          = g1->th + (180 / g0->nteeth);
 
708
  g0->ratio       = g1->ratio / 3;
703
709
 
704
710
  g0->tooth_slope = 0;
705
711
  g0->nubs        = 3;