cwFlowProc.cpp : Fix bugs in 'counter'.
This commit is contained in:
parent
6c65dec3c7
commit
6e3b59adb6
@ -4198,7 +4198,7 @@ namespace cw
|
||||
switch( p->mode_id )
|
||||
{
|
||||
case kModuloModeId:
|
||||
cnt -= (maxv-minv) + incr;
|
||||
cnt = minv + (cnt-maxv);
|
||||
break;
|
||||
|
||||
case kReverseModeId:
|
||||
@ -4221,7 +4221,7 @@ namespace cw
|
||||
switch( p->mode_id )
|
||||
{
|
||||
case kModuloModeId:
|
||||
cnt += (maxv - minv) + incr;
|
||||
cnt = maxv - (minv-cnt);
|
||||
break;
|
||||
|
||||
case kReverseModeId:
|
||||
|
Loading…
Reference in New Issue
Block a user