summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixDraw.c
diff options
context:
space:
mode:
authorericm <ericm>2000-07-20 21:38:28 (GMT)
committerericm <ericm>2000-07-20 21:38:28 (GMT)
commit907e82ec46673efe0cac76a4706285d2e49090e1 (patch)
tree6d2a9dbfa9b1030f2aef95bb798575adb6187afe /unix/tkUnixDraw.c
parent3637e82c594032d763b96863c8169c234d99913d (diff)
downloadtk-907e82ec46673efe0cac76a4706285d2e49090e1.zip
tk-907e82ec46673efe0cac76a4706285d2e49090e1.tar.gz
tk-907e82ec46673efe0cac76a4706285d2e49090e1.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].
Diffstat (limited to 'unix/tkUnixDraw.c')
-rw-r--r--unix/tkUnixDraw.c8
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;
+ }
}
/*