~ubuntu-branches/ubuntu/quantal/xscreensaver/quantal

« back to all changes in this revision

Viewing changes to hacks/glx/gltrackball.c

  • Committer: Bazaar Package Importer
  • Author(s): Ted Gould
  • Date: 2008-08-28 16:15:25 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080828161525-mxga521aoezxjq8h
Tags: 5.07-0ubuntu1
* Upgrade upstream version
* debian/control: Remove suggest xdaliclock as it is no longer
  included
* Remove 10_jwz-screensaver-randr-patch-3.patch as it has been merged
  upstream.
* Add 24_hacks_xsublim_enable.patch as it seems that xsublim was dropped
  from the build files.  There is nothing in the Changelog about it
  so I believe it was accidental.
* Updating the .desktop files from the XML files using gnome-screensaver's
  utility to do so.  Lots of text updates.  Also:
    * Added: abstractile.desktop
    * Added: cwaves.desktop
    * Added: m6502.desktop
    * Added: skytentacles.desktop
    * Removed: xteevee.desktop
* xscreensaver-gl-extra.files: Added skytentacles
* xscreensaver-data-extra.files: Added abstractile, cwaves and m6502
* xscreensaver-data.files: Remove partial abstractile, m6502 and cwaves

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
#include <math.h>
14
14
#include <stdlib.h>
 
15
#include <string.h>
15
16
 
16
17
#ifdef HAVE_CONFIG_H
17
18
# include "config.h"
43
44
  return ts;
44
45
}
45
46
 
 
47
/* Reset the trackball to the default unrotated state.
 
48
 */
 
49
void
 
50
gltrackball_reset (trackball_state *ts)
 
51
{
 
52
  memset (ts, 0, sizeof(*ts));
 
53
  trackball (ts->q, 0, 0, 0, 0);
 
54
}
 
55
 
46
56
/* Begin tracking the mouse: Call this when the mouse button goes down.
47
57
   x and y are the mouse position relative to the window.
48
58
   w and h are the size of the window.