| 1 |
/* Libvisual-plugins - Standard plugins for libvisual |
| 2 |
* |
| 3 |
* Copyright (C) 2002, 2003, 2004, 2005, 2006 Dennis Smit <[email protected]> |
| 4 |
* |
| 5 |
* Authors: Dennis Smit <[email protected]> |
| 6 |
* |
| 7 |
* $Id: config.c,v 1.7 2006/01/31 16:42:47 synap Exp $ |
| 8 |
* |
| 9 |
* This program is free software; you can redistribute it and/or modify |
| 10 |
* it under the terms of the GNU General Public License as |
| 11 |
* published by the Free Software Foundation; either version 2 |
| 12 |
* of the License, or (at your option) any later version. |
| 13 |
* |
| 14 |
* This program is distributed in the hope that it will be useful, |
| 15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
* GNU General Public License for more details. |
| 18 |
* |
| 19 |
* You should have received a copy of the GNU General Public License |
| 20 |
* along with this program; if not, write to the Free Software |
| 21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 |
*/ |
| 23 |
|
| 24 |
#include "common.h" |
| 25 |
#include "audio.h" |
| 26 |
#include "config-defines.h" |
| 27 |
#include "gfx-misc.h" |
| 28 |
#include "screen.h" |
| 29 |
#include "misc.h" |
| 30 |
#include "oink-config.h" |
| 31 |
|
| 32 |
/* random configs */ |
| 33 |
void _oink_config_random_blurmode (OinksiePrivate *priv) |
| 34 |
{ |
| 35 |
priv->config.blurmode = visual_random_context_int_range (priv->rcontext, 0, CONFIG_BLURMODES); |
| 36 |
} |
| 37 |
|
| 38 |
void _oink_config_random_scopemode (OinksiePrivate *priv) |
| 39 |
{ |
| 40 |
priv->config.scopemode = visual_random_context_int_range (priv->rcontext, 0, CONFIG_SCOPEMODES); |
| 41 |
} |
| 42 |
|
| 43 |
void _oink_config_random_backgroundmode (OinksiePrivate *priv) |
| 44 |
{ |
| 45 |
priv->config.backgroundmode = visual_random_context_int_range (priv->rcontext, 0, CONFIG_BACKGROUNDMODES); |
| 46 |
} |
| 47 |
|
| 48 |
void _oink_config_random_palfunky (OinksiePrivate *priv) |
| 49 |
{ |
| 50 |
priv->config.palfunky = visual_random_context_int_range (priv->rcontext, 0, 1); |
| 51 |
} |
| 52 |
|