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:
Douglas Clowes
2007-12-07 10:25:00 +11:00
parent 32595554bc
commit ad292da6e4

View File

@@ -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)
{ {