/* Libvisual-plugins - Standard plugins for libvisual * * Copyright (C) 2002, 2003, 2004, 2005 Dennis Smit * * Authors: Dennis Smit * * $Id: * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "common.h" #include "audio.h" #include "config-defines.h" #include "gfx-misc.h" #include "screen.h" #include "misc.h" #include "config.h" /* random configs */ inline void _oink_config_random_blurmode (OinksiePrivate *priv) { priv->config.blurmode = visual_random_context_int_range (priv->rcontext, 0, CONFIG_BLURMODES); } inline void _oink_config_random_scopemode (OinksiePrivate *priv) { priv->config.scopemode = visual_random_context_int_range (priv->rcontext, 0, CONFIG_SCOPEMODES); } inline void _oink_config_random_backgroundmode (OinksiePrivate *priv) { priv->config.backgroundmode = visual_random_context_int_range (priv->rcontext, 0, CONFIG_BACKGROUNDMODES); } inline void _oink_config_random_beatdots (OinksiePrivate *priv) { priv->config.beatdots = visual_random_context_int_range (priv->rcontext, 0, 1); } inline void _oink_config_random_palfunky (OinksiePrivate *priv) { priv->config.palfunky = visual_random_context_int_range (priv->rcontext, 0, 1); }