head 1.4; access; symbols pkgsrc-2016Q3:1.3.0.74 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.72 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.70 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.68 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.66 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.64 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.62 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.60 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.58 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.56 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.54 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.52 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.50 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.48 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.46 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.44 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.42 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.40 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.38 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.36 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.34 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.32 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.30 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.28 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.26 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.24 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.22 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.20 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.18 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.16 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.14 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.12 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.10 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.8 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.6 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.4 pkgsrc-2008Q1:1.3.0.2 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.2.0.12 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.10 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.8 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.6 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.4 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.2 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.1.0.8 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.6 pkgsrc-2006Q1-base:1.1 pkgsrc-2005Q4:1.1.0.4 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.2 pkgsrc-2005Q3-base:1.1; locks; strict; comment @# @; 1.4 date 2016.10.19.20.22.31; author wiz; state dead; branches; next 1.3; commitid jZUIGLgkvc7EkNqz; 1.3 date 2008.03.10.12.37.12; author drochner; state Exp; branches; next 1.2; 1.2 date 2006.07.18.18.40.36; author wiz; state dead; branches; next 1.1; 1.1 date 2005.07.17.17.39.57; author kristerw; state Exp; branches; next ; desc @@ 1.4 log @Remove old, undocumented patches where I can't even find reasoning in the CVS logs. Not needed on NetBSD, let me know if they are needed anywhere else. @ text @$NetBSD: patch-ai,v 1.3 2008/03/10 12:37:12 drochner Exp $ --- utils/visual-gl.c.orig 2008-03-02 16:26:23.000000000 +0100 +++ utils/visual-gl.c @@@@ -26,6 +26,7 @@@@ #ifdef HAVE_GL # include # include +# include #endif /* HAVE_GL */ extern char *progname; @ 1.3 log @update xscreensaver to 5.05 changes: -added, updated and improved hacks -bugfixes -Reworked PAM code to support fingerprint readers, etc. -Minor tweaks for compilation on MacOS 10.5.0 @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update to 5.00: Changes since 4.24: * Ported to MacOS X! (10.4.0 or newer) * API change: instead of providing a single screenhack() function that does not return, screen savers using the screenhack.h framework must now provide "init" and "draw one frame" functions instead. All bundled savers have been updated; third-party patches will need work. * All image-loading happens asynchronously. * xscreensaver-getimage-file caches the contents of the image directory for a few hours, so consecutive runs won't have to re-list the whole directory tree. * New hacks, `topblock' and `glschool'. * Removed `xteevee' (superceded by `xanalogtv'). * Added variable-sized puzzle pieces to `jigsaw'. * Changes to the defaults and command-line options of many hacks to make the .xml files more consistent. * Reap zombies in `glslideshow' and `carousel'. * `sonar' works without setuid on OSX (dgram icmp). * `xmatrix -mode pipe' displays the text of a subprocess. * `endgame' has higher resolution chess-piece models. * `webcollage' takes a -directory option to get images from a local directory. Changes since 4.23: * New versions of `cube21', `glsnake', `celtic'. * Backed out a DPMS-related patch that cause desktop flickering with some X servers. * Fixed startup crash in getgroups() when running setuid. * Default to not displaying stderr on the saver window. * Fixed bad free() in "Documentation" button. * Don't try to run hacks that aren't installed. * Minor fixes to various XML config files and man pages. Changes since 4.22: * New hacks, `glhanoi', `cube21', `timetunnel', `juggler3d', and `celtic'. * New versions of `tangram', `webcollage', `hypertorus', `polytopes', and `ripples'. * `sonar' is now quiet about unresolvable hosts. * Minor corrections to BASIC code in `apple2'. * Don't install `ant' by default, since there is some Java tool of that name, which was causing confusion. And also it's boring. * Made screen grabbing work again on MacOS 10.4.2. * No longer prints bogus warnings about ClientMessages intended for the window manager. * Ignore unprintable characters in passwd entry field. * Fixed yet another cross-host-display image-loading endian problem. * `xscreensaver-command -watch' and `-time' now work on 64-bit machines. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.1 2005/07/17 17:39:57 kristerw Exp $ d3 8 a10 3 --- hacks/glx/antmaze.c.orig Sun Jul 17 19:21:59 2005 +++ hacks/glx/antmaze.c Sun Jul 17 19:28:25 2005 @@@@ -975,6 +975,7 @@@@ d12 1 a12 54 /* fade out */ if(fadeoutspeed < -0.00001) { + GLfloat df[4]; if(fadeout <= 0.0) { /* switch boards: rebuild old board, increment current */ @@@@ -985,20 +986,27 @@@@ fadeout += fadeoutspeed; - GLfloat df[4] = {0.8*fadeout, 0.8*fadeout, 0.8*fadeout, 1.0}; + df[0] = 0.8*fadeout; + df[1] = 0.8*fadeout; + df[2] = 0.8*fadeout; + df[3] = 1.0; glLightfv(GL_LIGHT0, GL_DIFFUSE, df); glLightfv(GL_LIGHT1, GL_DIFFUSE, df); } /* fade in */ if(fadeoutspeed > 0.0001) { + GLfloat df[4]; fadeout += fadeoutspeed; if(fadeout >= 1.0) { fadeout = 1.0; fadeoutspeed = 0.0; entroducing = 12; } - GLfloat df[4] = {0.8*fadeout, 0.8*fadeout, 0.8*fadeout, 1.0}; + df[0] = 0.8*fadeout; + df[1] = 0.8*fadeout; + df[2] = 0.8*fadeout; + df[3] = 1.0; glLightfv(GL_LIGHT0, GL_DIFFUSE, df); glLightfv(GL_LIGHT1, GL_DIFFUSE, df); } @@@@ -1159,7 +1167,7 @@@@ /* difference */ double dx = antpath[i][part[i]][0] - antposition[i][0]; double dz = - antpath[i][part[i]][1] + antposition[i][1]; - double theta, ideal; + double theta, ideal, dt; if(dz > EPSILON) theta = atan(dz/dx); @@@@ -1171,7 +1179,7 @@@@ ideal += Pi; /* compute correction */ - double dt = sign(ideal) * min(fabs(ideal), PI/90.0); + dt = sign(ideal) * min(fabs(ideal), PI/90.0); antdirection[i] += dt; if(antdirection[i] > 2.0*PI) antdirection[i] = 0.0; @ 1.1 log @Fix C99-isms. @ text @d1 1 a1 1 $NetBSD$ @