changeset 15896:3a3c30116313

(change_frame_size_1): Clean up conditional.
author Erik Naggum <erik@naggum.no>
date Thu, 22 Aug 1996 08:23:30 +0000
parents 85112cca0b22
children d9496ad1f3a6
files src/dispnew.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Thu Aug 22 02:57:09 1996 +0000
+++ b/src/dispnew.c	Thu Aug 22 08:23:30 1996 +0000
@@ -2134,8 +2134,10 @@
   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);