Reduce excessive update messages by supressing when value has not changed
r2262 | dcl | 2007-12-07 10:25:00 +1100 (Fri, 07 Dec 2007) | 2 lines
This commit is contained in:
6
sicvar.c
6
sicvar.c
@@ -251,7 +251,7 @@
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
else if (self->fVal != fNew)
|
||||||
{
|
{
|
||||||
self->fVal = fNew;
|
self->fVal = fNew;
|
||||||
InvokeCallBack(self->pCall, VALUECHANGE, self);
|
InvokeCallBack(self->pCall, VALUECHANGE, self);
|
||||||
@@ -268,7 +268,7 @@
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
else if (self->iVal != iNew)
|
||||||
{
|
{
|
||||||
self->iVal = iNew;
|
self->iVal = iNew;
|
||||||
InvokeCallBack(self->pCall, VALUECHANGE, self);
|
InvokeCallBack(self->pCall, VALUECHANGE, self);
|
||||||
@@ -285,7 +285,7 @@
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
else if (self->text && strcmp(self->text, pNew))
|
||||||
{
|
{
|
||||||
if(self->text)
|
if(self->text)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user