comparison src/dispnew.c @ 3449:ad455da9b789

(do_pending_window_change): No need to clear FRAME_NEW_HEIGHT/WIDTH. Do test width != 0.
author Richard M. Stallman <rms@gnu.org>
date Thu, 03 Jun 1993 06:18:18 +0000
parents d9523a958b3c
children 657a74662346
comparison
equal deleted inserted replaced
3448:b7d345eaae47 3449:ad455da9b789
1655 { 1655 {
1656 FRAME_PTR f = XFRAME (frame); 1656 FRAME_PTR f = XFRAME (frame);
1657 1657
1658 int height = FRAME_NEW_HEIGHT (f); 1658 int height = FRAME_NEW_HEIGHT (f);
1659 int width = FRAME_NEW_WIDTH (f); 1659 int width = FRAME_NEW_WIDTH (f);
1660 1660
1661 FRAME_NEW_HEIGHT (f) = 0; 1661 if (height != 0 || width != 0)
1662 FRAME_NEW_WIDTH (f) = 0;
1663
1664 if (height != 0)
1665 change_frame_size (f, height, width, 0, 0); 1662 change_frame_size (f, height, width, 0, 0);
1666 } 1663 }
1667 } 1664 }
1668 } 1665 }
1669 1666
1691 1688
1692 /* This size-change overrides any pending one for this frame. */ 1689 /* This size-change overrides any pending one for this frame. */
1693 FRAME_NEW_HEIGHT (frame) = 0; 1690 FRAME_NEW_HEIGHT (frame) = 0;
1694 FRAME_NEW_WIDTH (frame) = 0; 1691 FRAME_NEW_WIDTH (frame) = 0;
1695 1692
1696 /* If an arguments is zero, set it to the current value. */ 1693 /* If an argument is zero, set it to the current value. */
1697 newheight || (newheight = FRAME_HEIGHT (frame)); 1694 newheight || (newheight = FRAME_HEIGHT (frame));
1698 newwidth || (newwidth = FRAME_WIDTH (frame)); 1695 newwidth || (newwidth = FRAME_WIDTH (frame));
1699 1696
1700 /* Round up to the smallest acceptable size. */ 1697 /* Round up to the smallest acceptable size. */
1701 check_frame_size (frame, &newheight, &newwidth); 1698 check_frame_size (frame, &newheight, &newwidth);