aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Naggum1996-08-22 08:23:30 +0000
committerErik Naggum1996-08-22 08:23:30 +0000
commitae19c6f24c7161fb86a0df91910d0017ec86c72a (patch)
tree91e910d062292689e46bb94e75d55bf1aaa3f28b /src
parent6044e593a6e739ef32671ea1e0b0acc277e5498b (diff)
downloademacs-ae19c6f24c7161fb86a0df91910d0017ec86c72a.tar.gz
emacs-ae19c6f24c7161fb86a0df91910d0017ec86c72a.zip
(change_frame_size_1): Clean up conditional.
Diffstat (limited to 'src')
-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)
2134 FRAME_NEW_WIDTH (frame) = 0; 2134 FRAME_NEW_WIDTH (frame) = 0;
2135 2135
2136 /* If an argument is zero, set it to the current value. */ 2136 /* If an argument is zero, set it to the current value. */
2137 newheight || (newheight = FRAME_HEIGHT (frame)); 2137 if (newheight == 0)
2138 newwidth || (newwidth = FRAME_WIDTH (frame)); 2138 newheight = FRAME_HEIGHT (frame);
2139 if (newwidth == 0)
2140 newwidth = FRAME_WIDTH (frame);
2139 2141
2140 /* Round up to the smallest acceptable size. */ 2142 /* Round up to the smallest acceptable size. */
2141 check_frame_size (frame, &newheight, &newwidth); 2143 check_frame_size (frame, &newheight, &newwidth);