mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Merge with develop
This commit is contained in:
parent
2c94ec2e2d
commit
03242fbc41
1 changed files with 2 additions and 2 deletions
|
@ -1135,7 +1135,7 @@ namespace NLGUI
|
|||
factor = factor * (1.0f-(_TrackPos / favoid0((float)(getHReal()-_TrackSize))));
|
||||
|
||||
// Compute Steped target
|
||||
sint32 nexOfsY= (sint32) (_Inverted ? factor : -factor);
|
||||
sint32 nexOfsY= (sint32) floorf(0.5+(_Inverted ? factor : -factor));
|
||||
if(_TargetStepY>1)
|
||||
nexOfsY= ((nexOfsY+_TargetStepY/2)/_TargetStepY) * _TargetStepY;
|
||||
_Target->setOfsY (nexOfsY);
|
||||
|
@ -1154,7 +1154,7 @@ namespace NLGUI
|
|||
factor = factor * (1.0f-(_TrackPos / favoid0((float)(getWReal()-_TrackSize))));
|
||||
|
||||
// Compute Steped target
|
||||
sint32 nexOfsX= (sint32) (_Inverted ? factor : -factor);
|
||||
sint32 nexOfsX= (sint32) floorf(0.5+(_Inverted ? factor : -factor));
|
||||
if(_TargetStepX>1)
|
||||
nexOfsX= ((nexOfsX+_TargetStepX/2)/_TargetStepX) * _TargetStepX;
|
||||
_Target->setOfsX (nexOfsX);
|
||||
|
|
Loading…
Reference in a new issue