X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcpot.C;h=b979f915b82f815e017c5155094ab7388031cb94;hp=60807911b501ed6e628f6d3bb8a2046e40db43a6;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa diff --git a/cinelerra-5.1/guicast/bcpot.C b/cinelerra-5.1/guicast/bcpot.C index 60807911..b979f915 100644 --- a/cinelerra-5.1/guicast/bcpot.C +++ b/cinelerra-5.1/guicast/bcpot.C @@ -141,8 +141,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) { - x1 += resources->pot_offset; - y1 += resources->pot_offset; + x1 += xS(resources->pot_offset); + y1 += yS(resources->pot_offset); } while(angle < 0) angle += 360; @@ -406,21 +406,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; @@ -505,18 +492,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; @@ -594,14 +571,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); @@ -667,18 +637,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; @@ -742,10 +702,3 @@ void BC_PercentagePot::update(float value) } } - - - - - - -