summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authorculler <culler>2019-01-03 14:45:12 (GMT)
committerculler <culler>2019-01-03 14:45:12 (GMT)
commitd15feac70552dc770fae1d628e7b465c2cae7726 (patch)
treefc74ab7b232935b58df90be8aa535dc96e3f1eb6 /generic/tkTextDisp.c
parentb6eb3654e101439f170418eb6eab11065e196a06 (diff)
downloadtk-d15feac70552dc770fae1d628e7b465c2cae7726.zip
tk-d15feac70552dc770fae1d628e7b465c2cae7726.tar.gz
tk-d15feac70552dc770fae1d628e7b465c2cae7726.tar.bz2
Fix the build for MSVC once more.
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r--generic/tkTextDisp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 7f9d13f..cde30e1 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -3142,11 +3142,11 @@ AsyncUpdateLineMetrics(
static void
GenerateWidgetViewSyncEvent(
- TkText *textPtr, /* Information about text widget. */
- Bool NewSyncState) /* true if becoming in sync, false otherwise */
+ TkText *textPtr, /* Information about text widget. */
+ Bool InSync) /* true if becoming in sync, false otherwise */
{
- NewSyncState = (NewSyncState != 0); /* ensure 0 or 1 value */
- Bool OldSyncState = ((textPtr->dInfoPtr->flags & OUT_OF_SYNC) == 0);
+ Bool NewSyncState = (InSync != 0); /* ensure 0 or 1 value */
+ Bool OldSyncState = !(textPtr->dInfoPtr->flags & OUT_OF_SYNC);
/*
* OSX 10.14 needs to be told to display the window when the Text Widget