diff options
author | ericm <ericm@noemail.net> | 2000-07-20 21:38:27 (GMT) |
---|---|---|
committer | ericm <ericm@noemail.net> | 2000-07-20 21:38:27 (GMT) |
commit | a4a7218798daf35b0f99d65f93bfa8f5e59ae601 (patch) | |
tree | 6d2a9dbfa9b1030f2aef95bb798575adb6187afe /unix/tkUnixDraw.c | |
parent | a27a180689a593cf217c496b5b57ea6f6181d1d6 (diff) | |
download | tk-a4a7218798daf35b0f99d65f93bfa8f5e59ae601.zip tk-a4a7218798daf35b0f99d65f93bfa8f5e59ae601.tar.gz tk-a4a7218798daf35b0f99d65f93bfa8f5e59ae601.tar.bz2 |
* unix/tkUnixDraw.c (TkScrollWindow): Replaced a use of a trinary
operator with an if/else, to avoid build problems on some
platforms [Bug: 5819].
FossilOrigin-Name: dd22e96af1fb0e24f05cf1f6fdde1699779f96a0
Diffstat (limited to 'unix/tkUnixDraw.c')
-rw-r--r-- | unix/tkUnixDraw.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/unix/tkUnixDraw.c b/unix/tkUnixDraw.c index cc9f736..82576bf 100644 --- a/unix/tkUnixDraw.c +++ b/unix/tkUnixDraw.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUnixDraw.c,v 1.5 1999/09/02 17:03:23 hobbs Exp $ + * RCS: @(#) $Id: tkUnixDraw.c,v 1.6 2000/07/20 21:38:28 ericm Exp $ */ #include "tkPort.h" @@ -94,7 +94,11 @@ TkScrollWindow(tkwin, gc, x, y, width, height, dx, dy, damageRgn) } Tk_RestrictEvents(oldProc, oldArg, &dummy); - return XEmptyRegion((Region) damageRgn) ? 0 : 1; + if (XEmptyRegion((Region) damageRgn)) { + return 0; + } else { + return 1; + } } /* |