Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 137350
Collapse All | Expand All

(-)hdaps-gl-0.0.5/hdaps-gl.c (-4 / +4 lines)
Lines 99-105 Link Here
99
	glPushMatrix ();
99
	glPushMatrix ();
100
100
101
	glRotated (val_x / 2.0, 0.0f, 0.0f, -1.0f);
101
	glRotated (val_x / 2.0, 0.0f, 0.0f, -1.0f);
102
	glRotated (val_y / 2.0, 1.0f, 0.0f, 0.0f);
102
	glRotated (-val_y / 2.0, 1.0f, 0.0f, 0.0f);
103
103
104
	glBegin (GL_QUADS);	// start drawing the laptop.
104
	glBegin (GL_QUADS);	// start drawing the laptop.
105
105
Lines 196-207 Link Here
196
{
196
{
197
	int ret, x, y, do_update = 0;
197
	int ret, x, y, do_update = 0;
198
198
199
	ret = read_position (&x, &y);
199
	ret = read_position (&y, &x);
200
	if (ret)
200
	if (ret)
201
		exit(EXIT_FAILURE);
201
		exit(EXIT_FAILURE);
202
202
203
	x -= rest_x;
203
	y -= rest_x;
204
	y -= rest_y;
204
	x -= rest_y;
205
205
206
	/* only update if we surpass our threshold, to minimize jitter ... */ 
206
	/* only update if we surpass our threshold, to minimize jitter ... */ 
207
	if (abs (x - val_x) > UPDATE_THRESHOLD) {
207
	if (abs (x - val_x) > UPDATE_THRESHOLD) {

Return to bug 137350