cwFlowProc.cpp : Fix bugs in 'counter'.

This commit is contained in:
kevin 2024-04-26 17:44:33 -04:00
parent 6c65dec3c7
commit 6e3b59adb6

View File

@ -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: