projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
purge file_cache when starting rev read cache burst
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
guicast
/
bcpot.C
diff --git
a/cinelerra-5.1/guicast/bcpot.C
b/cinelerra-5.1/guicast/bcpot.C
index 60807911b501ed6e628f6d3bb8a2046e40db43a6..6b91b33c6e067011074d4e76cf3c9393d03baf71 100644
(file)
--- a/
cinelerra-5.1/guicast/bcpot.C
+++ b/
cinelerra-5.1/guicast/bcpot.C
@@
-44,6
+44,8
@@
BC_Pot::BC_Pot(int x, int y, VFrame **data)
BC_Pot::~BC_Pot()
{
BC_Pot::~BC_Pot()
{
+ for(int i = 0; i < POT_STATES; i++)
+ if(images[i]) delete images[i];
}
int BC_Pot::calculate_h()
}
int BC_Pot::calculate_h()
@@
-141,8
+143,8
@@
int BC_Pot::angle_to_coords(int &x1, int &y1, int &x2, int &y2, float angle)
y1 = resources->pot_y1;
if(status == POT_DN)
{
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;
}
while(angle < 0) angle += 360;
@@
-406,21
+408,8
@@
int BC_Pot::cursor_motion_event()
}
}
-
-
-
-
-
-
-
-
-
-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_Pot(x, y, data)
{
this->value = value;
@@
-505,18
+494,8
@@
void BC_FPot::update(float value, float minvalue, float maxvalue)
}
}
-
-
-
-
-
-
-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_Pot(x, y, data)
{
this->value = value;
@@
-594,14
+573,7
@@
void BC_IPot::update(int64_t value, int64_t minvalue, int64_t maxvalue)
}
}
-
-
-
-
-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_Pot(x, y, data)
{
this->value = Freq::fromfreq(value);
@@
-667,18
+639,8
@@
void BC_QPot::update(int64_t 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;
: BC_Pot(x, y, data)
{
this->value = value;
@@
-742,10
+704,3
@@
void BC_PercentagePot::update(float value)
}
}
}
}
-
-
-
-
-
-
-