BC_Pot::~BC_Pot()
{
+ for(int i = 0; i < POT_STATES; i++)
+ if(images[i]) delete images[i];
}
int BC_Pot::calculate_h()
y1 = resources->pot_y1;
if(status == POT_DN)
{
- x1 += resources->pot_offset;
- y1 += resources->pot_offset;
+ x1 += xS(resources->pot_offset);
+ y1 += yS(resources->pot_offset);
}
while(angle < 0) angle += 360;
}
-
-
-
-
-
-
-
-
-
-BC_FPot::BC_FPot(int x,
- int y,
- float value,
- float minvalue,
- float maxvalue,
- VFrame **data)
+BC_FPot::BC_FPot(int x, int y,
+ float value, float minvalue, float maxvalue, VFrame **data)
: BC_Pot(x, y, data)
{
this->value = value;
}
-
-
-
-
-
-
-BC_IPot::BC_IPot(int x,
- int y,
- int64_t value,
- int64_t minvalue,
- int64_t maxvalue,
- VFrame **data)
+BC_IPot::BC_IPot(int x, int y,
+ int64_t value, int64_t minvalue, int64_t maxvalue, VFrame **data)
: BC_Pot(x, y, data)
{
this->value = value;
}
-
-
-
-
-BC_QPot::BC_QPot(int x,
- int y,
- int64_t value,
- VFrame **data)
+BC_QPot::BC_QPot(int x, int y, int64_t value, VFrame **data)
: BC_Pot(x, y, data)
{
this->value = Freq::fromfreq(value);
}
-
-
-
-
-
-
-BC_PercentagePot::BC_PercentagePot(int x,
- int y,
- float value,
- float minvalue,
- float maxvalue,
- VFrame **data)
+BC_PercentagePot::BC_PercentagePot(int x, int y,
+ float value, float minvalue, float maxvalue, VFrame **data)
: BC_Pot(x, y, data)
{
this->value = value;
}
}
-
-
-
-
-
-
-