Commit ae19c6f2 authored by Erik Naggum's avatar Erik Naggum

(change_frame_size_1): Clean up conditional.

parent 6044e593
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment