mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-02 13:35:33 +00:00
now blows up in projectM::renderFrame()
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/represet@1167 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -10,9 +10,11 @@
|
||||
|
||||
BuiltinParams::BuiltinParams() {}
|
||||
|
||||
BuiltinParams::BuiltinParams(const PresetInputs & presetInputs, PresetOutputs & presetOutputs)
|
||||
BuiltinParams::BuiltinParams(PresetInputs & presetInputs, PresetOutputs & presetOutputs)
|
||||
{
|
||||
|
||||
presetInputs.Initialize(presetOutputs.gx, presetOutputs.gy);
|
||||
|
||||
int ret;
|
||||
if ((ret = init_builtin_param_db(presetInputs, presetOutputs)) != PROJECTM_SUCCESS)
|
||||
{
|
||||
|
||||
@ -42,7 +42,7 @@ public:
|
||||
|
||||
/** Construct a new builtin parameter database with variables references given by
|
||||
* the preset input and output structures */
|
||||
BuiltinParams(const PresetInputs & presetInputs, PresetOutputs & presetOutputs);
|
||||
BuiltinParams(PresetInputs & presetInputs, PresetOutputs & presetOutputs);
|
||||
|
||||
~BuiltinParams();
|
||||
|
||||
|
||||
@ -44,8 +44,6 @@ MilkdropPreset::MilkdropPreset(std::istream & in, const std::string & presetName
|
||||
builtinParams(_presetInputs, presetOutputs),
|
||||
_presetOutputs(presetOutputs)
|
||||
{
|
||||
_presetInputs.gx = _presetOutputs.gx;
|
||||
_presetInputs.gy = _presetOutputs.gy;
|
||||
initialize(in);
|
||||
|
||||
}
|
||||
@ -55,7 +53,6 @@ MilkdropPreset::MilkdropPreset(const std::string & absoluteFilePath, const std::
|
||||
_absoluteFilePath(absoluteFilePath),
|
||||
_presetOutputs(presetOutputs)
|
||||
{
|
||||
_presetInputs.Initialize(_presetOutputs.gx ,_presetOutputs.gy);
|
||||
|
||||
initialize(absoluteFilePath);
|
||||
|
||||
|
||||
@ -185,7 +185,7 @@ void MilkdropPresetFactory::initializePresetOutputs(int gx, int gy)
|
||||
|
||||
/* Q AND T VARIABLES START */
|
||||
|
||||
for (int i = 0;i<32;i++)
|
||||
for (int i = 0;i<NUM_Q_VARIABLES;i++)
|
||||
_presetOutputs.q[i] = 0;
|
||||
|
||||
/* Q AND T VARIABLES END */
|
||||
|
||||
Reference in New Issue
Block a user