summaryrefslogtreecommitdiff
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorErik Naggum <erik@naggum.no>1996-08-22 08:23:30 +0000
committerErik Naggum <erik@naggum.no>1996-08-22 08:23:30 +0000
commit0c449016b4df52466f3cbec6586da70146975f17 (patch)
treeaf6cc74c23b0aaa78dc3713fa875dbb74aab0745 /src/dispnew.c
parentfd0c8bc9625ee8431493274688ba982caf8a30cc (diff)
downloademacs-0c449016b4df52466f3cbec6586da70146975f17.tar.gz
(change_frame_size_1): Clean up conditional.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index c45649deb1e..96d513b8e59 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -2134,8 +2134,10 @@ change_frame_size_1 (frame, newheight, newwidth, pretend, delay)
FRAME_NEW_WIDTH (frame) = 0;
/* If an argument is zero, set it to the current value. */
- newheight || (newheight = FRAME_HEIGHT (frame));
- newwidth || (newwidth = FRAME_WIDTH (frame));
+ if (newheight == 0)
+ newheight = FRAME_HEIGHT (frame);
+ if (newwidth == 0)
+ newwidth = FRAME_WIDTH (frame);
/* Round up to the smallest acceptable size. */
check_frame_size (frame, &newheight, &newwidth);