More nerds and a fairer shuffle algorithm.
--Sven
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 6 21:00:57 MEST 1999 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/about_dialog.c: added a few more contributors and changed
|
||||||
|
the algorithm slightly. Sorry, Lauri, this isn't against you, but
|
||||||
|
other people should have a chance to appear first too ;-)
|
||||||
|
|
||||||
1999-09-06 James Henstridge <james@daa.com.au>
|
1999-09-06 James Henstridge <james@daa.com.au>
|
||||||
|
|
||||||
* plug-ins/Makefile.am: conditionally compile pygimp.
|
* plug-ins/Makefile.am: conditionally compile pygimp.
|
||||||
|
@ -25,8 +25,9 @@
|
|||||||
#include "libgimp/gimpfeatures.h"
|
#include "libgimp/gimpfeatures.h"
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "libgimp/gimpintl.h"
|
|
||||||
#include "libgimp/gimpenv.h"
|
#include "libgimp/gimpenv.h"
|
||||||
|
#include "libgimp/gimpintl.h"
|
||||||
|
#include "libgimp/gimpmath.h"
|
||||||
|
|
||||||
#include "about_dialog.h"
|
#include "about_dialog.h"
|
||||||
|
|
||||||
@ -91,16 +92,21 @@ static gchar *scroll_text[] =
|
|||||||
"Tim Janik",
|
"Tim Janik",
|
||||||
"Tuomas Kuosmanen",
|
"Tuomas Kuosmanen",
|
||||||
"Peter Kirchgessner",
|
"Peter Kirchgessner",
|
||||||
|
"Karin Kylander"
|
||||||
|
"Olof S Kylander",
|
||||||
"Nick Lamb",
|
"Nick Lamb",
|
||||||
"Karl LaRocca",
|
"Karl LaRocca",
|
||||||
"Jens Lautenbacher",
|
"Jens Lautenbacher",
|
||||||
"Laramie Leavitt",
|
"Laramie Leavitt",
|
||||||
"Elliot Lee",
|
"Elliot Lee",
|
||||||
|
"Marc Lehmann",
|
||||||
"Raph Levien",
|
"Raph Levien",
|
||||||
"Adrian Likins",
|
"Adrian Likins",
|
||||||
|
"Tor Lillqvist",
|
||||||
"Ingo Luetkebohle",
|
"Ingo Luetkebohle",
|
||||||
"Josh MacDonald",
|
"Josh MacDonald",
|
||||||
"Ed Mackey",
|
"Ed Mackey",
|
||||||
|
"Vidar Madsen",
|
||||||
"Marcelo Malheiros",
|
"Marcelo Malheiros",
|
||||||
"Ian Main",
|
"Ian Main",
|
||||||
"Torsten Martinsen",
|
"Torsten Martinsen",
|
||||||
@ -111,8 +117,10 @@ static gchar *scroll_text[] =
|
|||||||
"Sven Neumann",
|
"Sven Neumann",
|
||||||
"Stephen Robert Norris",
|
"Stephen Robert Norris",
|
||||||
"Erik Nygren",
|
"Erik Nygren",
|
||||||
|
"Tomas Ogren",
|
||||||
"Miles O'Neal",
|
"Miles O'Neal",
|
||||||
"Jay Painter",
|
"Jay Painter",
|
||||||
|
"Asbjorn Pettersen",
|
||||||
"Mike Phillips",
|
"Mike Phillips",
|
||||||
"Raphael Quinet",
|
"Raphael Quinet",
|
||||||
"James Robinson",
|
"James Robinson",
|
||||||
@ -133,7 +141,7 @@ static gchar *scroll_text[] =
|
|||||||
static gint nscroll_texts = sizeof (scroll_text) / sizeof (scroll_text[0]);
|
static gint nscroll_texts = sizeof (scroll_text) / sizeof (scroll_text[0]);
|
||||||
static gint scroll_text_widths[100] = { 0 };
|
static gint scroll_text_widths[100] = { 0 };
|
||||||
static gint cur_scroll_text = 0;
|
static gint cur_scroll_text = 0;
|
||||||
static gint cur_scroll_index = 0;
|
static gint cur_scroll_index;
|
||||||
|
|
||||||
static gint shuffle_array[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
|
static gint shuffle_array[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
|
||||||
|
|
||||||
@ -262,17 +270,17 @@ about_dialog_create (gint timeout)
|
|||||||
|
|
||||||
for (i = 0; i < nscroll_texts; i++)
|
for (i = 0; i < nscroll_texts; i++)
|
||||||
{
|
{
|
||||||
int j, k;
|
int j;
|
||||||
j = rand() % nscroll_texts;
|
j = rand() % nscroll_texts;
|
||||||
k = rand() % nscroll_texts;
|
if (i != j)
|
||||||
if (j != k)
|
|
||||||
{
|
{
|
||||||
int t;
|
int t;
|
||||||
t = shuffle_array[j];
|
t = shuffle_array[j];
|
||||||
shuffle_array[j] = shuffle_array[k];
|
shuffle_array[j] = shuffle_array[i];
|
||||||
shuffle_array[k] = t;
|
shuffle_array[i] = t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cur_scroll_text = rand() % nscroll_texts;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -25,8 +25,9 @@
|
|||||||
#include "libgimp/gimpfeatures.h"
|
#include "libgimp/gimpfeatures.h"
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "libgimp/gimpintl.h"
|
|
||||||
#include "libgimp/gimpenv.h"
|
#include "libgimp/gimpenv.h"
|
||||||
|
#include "libgimp/gimpintl.h"
|
||||||
|
#include "libgimp/gimpmath.h"
|
||||||
|
|
||||||
#include "about_dialog.h"
|
#include "about_dialog.h"
|
||||||
|
|
||||||
@ -91,16 +92,21 @@ static gchar *scroll_text[] =
|
|||||||
"Tim Janik",
|
"Tim Janik",
|
||||||
"Tuomas Kuosmanen",
|
"Tuomas Kuosmanen",
|
||||||
"Peter Kirchgessner",
|
"Peter Kirchgessner",
|
||||||
|
"Karin Kylander"
|
||||||
|
"Olof S Kylander",
|
||||||
"Nick Lamb",
|
"Nick Lamb",
|
||||||
"Karl LaRocca",
|
"Karl LaRocca",
|
||||||
"Jens Lautenbacher",
|
"Jens Lautenbacher",
|
||||||
"Laramie Leavitt",
|
"Laramie Leavitt",
|
||||||
"Elliot Lee",
|
"Elliot Lee",
|
||||||
|
"Marc Lehmann",
|
||||||
"Raph Levien",
|
"Raph Levien",
|
||||||
"Adrian Likins",
|
"Adrian Likins",
|
||||||
|
"Tor Lillqvist",
|
||||||
"Ingo Luetkebohle",
|
"Ingo Luetkebohle",
|
||||||
"Josh MacDonald",
|
"Josh MacDonald",
|
||||||
"Ed Mackey",
|
"Ed Mackey",
|
||||||
|
"Vidar Madsen",
|
||||||
"Marcelo Malheiros",
|
"Marcelo Malheiros",
|
||||||
"Ian Main",
|
"Ian Main",
|
||||||
"Torsten Martinsen",
|
"Torsten Martinsen",
|
||||||
@ -111,8 +117,10 @@ static gchar *scroll_text[] =
|
|||||||
"Sven Neumann",
|
"Sven Neumann",
|
||||||
"Stephen Robert Norris",
|
"Stephen Robert Norris",
|
||||||
"Erik Nygren",
|
"Erik Nygren",
|
||||||
|
"Tomas Ogren",
|
||||||
"Miles O'Neal",
|
"Miles O'Neal",
|
||||||
"Jay Painter",
|
"Jay Painter",
|
||||||
|
"Asbjorn Pettersen",
|
||||||
"Mike Phillips",
|
"Mike Phillips",
|
||||||
"Raphael Quinet",
|
"Raphael Quinet",
|
||||||
"James Robinson",
|
"James Robinson",
|
||||||
@ -133,7 +141,7 @@ static gchar *scroll_text[] =
|
|||||||
static gint nscroll_texts = sizeof (scroll_text) / sizeof (scroll_text[0]);
|
static gint nscroll_texts = sizeof (scroll_text) / sizeof (scroll_text[0]);
|
||||||
static gint scroll_text_widths[100] = { 0 };
|
static gint scroll_text_widths[100] = { 0 };
|
||||||
static gint cur_scroll_text = 0;
|
static gint cur_scroll_text = 0;
|
||||||
static gint cur_scroll_index = 0;
|
static gint cur_scroll_index;
|
||||||
|
|
||||||
static gint shuffle_array[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
|
static gint shuffle_array[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
|
||||||
|
|
||||||
@ -262,17 +270,17 @@ about_dialog_create (gint timeout)
|
|||||||
|
|
||||||
for (i = 0; i < nscroll_texts; i++)
|
for (i = 0; i < nscroll_texts; i++)
|
||||||
{
|
{
|
||||||
int j, k;
|
int j;
|
||||||
j = rand() % nscroll_texts;
|
j = rand() % nscroll_texts;
|
||||||
k = rand() % nscroll_texts;
|
if (i != j)
|
||||||
if (j != k)
|
|
||||||
{
|
{
|
||||||
int t;
|
int t;
|
||||||
t = shuffle_array[j];
|
t = shuffle_array[j];
|
||||||
shuffle_array[j] = shuffle_array[k];
|
shuffle_array[j] = shuffle_array[i];
|
||||||
shuffle_array[k] = t;
|
shuffle_array[i] = t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cur_scroll_text = rand() % nscroll_texts;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -25,8 +25,9 @@
|
|||||||
#include "libgimp/gimpfeatures.h"
|
#include "libgimp/gimpfeatures.h"
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "libgimp/gimpintl.h"
|
|
||||||
#include "libgimp/gimpenv.h"
|
#include "libgimp/gimpenv.h"
|
||||||
|
#include "libgimp/gimpintl.h"
|
||||||
|
#include "libgimp/gimpmath.h"
|
||||||
|
|
||||||
#include "about_dialog.h"
|
#include "about_dialog.h"
|
||||||
|
|
||||||
@ -91,16 +92,21 @@ static gchar *scroll_text[] =
|
|||||||
"Tim Janik",
|
"Tim Janik",
|
||||||
"Tuomas Kuosmanen",
|
"Tuomas Kuosmanen",
|
||||||
"Peter Kirchgessner",
|
"Peter Kirchgessner",
|
||||||
|
"Karin Kylander"
|
||||||
|
"Olof S Kylander",
|
||||||
"Nick Lamb",
|
"Nick Lamb",
|
||||||
"Karl LaRocca",
|
"Karl LaRocca",
|
||||||
"Jens Lautenbacher",
|
"Jens Lautenbacher",
|
||||||
"Laramie Leavitt",
|
"Laramie Leavitt",
|
||||||
"Elliot Lee",
|
"Elliot Lee",
|
||||||
|
"Marc Lehmann",
|
||||||
"Raph Levien",
|
"Raph Levien",
|
||||||
"Adrian Likins",
|
"Adrian Likins",
|
||||||
|
"Tor Lillqvist",
|
||||||
"Ingo Luetkebohle",
|
"Ingo Luetkebohle",
|
||||||
"Josh MacDonald",
|
"Josh MacDonald",
|
||||||
"Ed Mackey",
|
"Ed Mackey",
|
||||||
|
"Vidar Madsen",
|
||||||
"Marcelo Malheiros",
|
"Marcelo Malheiros",
|
||||||
"Ian Main",
|
"Ian Main",
|
||||||
"Torsten Martinsen",
|
"Torsten Martinsen",
|
||||||
@ -111,8 +117,10 @@ static gchar *scroll_text[] =
|
|||||||
"Sven Neumann",
|
"Sven Neumann",
|
||||||
"Stephen Robert Norris",
|
"Stephen Robert Norris",
|
||||||
"Erik Nygren",
|
"Erik Nygren",
|
||||||
|
"Tomas Ogren",
|
||||||
"Miles O'Neal",
|
"Miles O'Neal",
|
||||||
"Jay Painter",
|
"Jay Painter",
|
||||||
|
"Asbjorn Pettersen",
|
||||||
"Mike Phillips",
|
"Mike Phillips",
|
||||||
"Raphael Quinet",
|
"Raphael Quinet",
|
||||||
"James Robinson",
|
"James Robinson",
|
||||||
@ -133,7 +141,7 @@ static gchar *scroll_text[] =
|
|||||||
static gint nscroll_texts = sizeof (scroll_text) / sizeof (scroll_text[0]);
|
static gint nscroll_texts = sizeof (scroll_text) / sizeof (scroll_text[0]);
|
||||||
static gint scroll_text_widths[100] = { 0 };
|
static gint scroll_text_widths[100] = { 0 };
|
||||||
static gint cur_scroll_text = 0;
|
static gint cur_scroll_text = 0;
|
||||||
static gint cur_scroll_index = 0;
|
static gint cur_scroll_index;
|
||||||
|
|
||||||
static gint shuffle_array[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
|
static gint shuffle_array[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
|
||||||
|
|
||||||
@ -262,17 +270,17 @@ about_dialog_create (gint timeout)
|
|||||||
|
|
||||||
for (i = 0; i < nscroll_texts; i++)
|
for (i = 0; i < nscroll_texts; i++)
|
||||||
{
|
{
|
||||||
int j, k;
|
int j;
|
||||||
j = rand() % nscroll_texts;
|
j = rand() % nscroll_texts;
|
||||||
k = rand() % nscroll_texts;
|
if (i != j)
|
||||||
if (j != k)
|
|
||||||
{
|
{
|
||||||
int t;
|
int t;
|
||||||
t = shuffle_array[j];
|
t = shuffle_array[j];
|
||||||
shuffle_array[j] = shuffle_array[k];
|
shuffle_array[j] = shuffle_array[i];
|
||||||
shuffle_array[k] = t;
|
shuffle_array[i] = t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cur_scroll_text = rand() % nscroll_texts;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user