From: Martin Rudalics Date: Mon, 30 Dec 2013 09:14:29 +0000 (+0100) Subject: Fix Bug#16284. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~130 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=564eb533f9f36bbc1a18ea17522d97fa21d1b4bc;p=emacs.git Fix Bug#16284. * dispnew.c (change_frame_size_1): Take old width of root window from that window's pixel width. Bug#16284. --- diff --git a/src/ChangeLog b/src/ChangeLog index e1e9777fa4f..fd2b6db1165 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-12-30 Martin Rudalics + + * dispnew.c (change_frame_size_1): Take old width of root window + from that window's pixel width. Bug#16284. + 2013-12-29 Paul Eggert Plain copy-file no longer chmods an existing destination (Bug#16133). diff --git a/src/dispnew.c b/src/dispnew.c index cbf1963feca..5ba07afe09d 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -5463,8 +5463,7 @@ change_frame_size_1 (struct frame *f, int new_width, int new_height, bool pretend, bool delay, bool safe, bool pixelwise) { int new_text_width, new_text_height, new_root_width; - int old_root_width = (FRAME_PIXEL_WIDTH (f) - - 2 * FRAME_INTERNAL_BORDER_WIDTH (f)); + int old_root_width = WINDOW_PIXEL_WIDTH (XWINDOW (FRAME_ROOT_WINDOW (f))); int new_cols, new_lines; ptrdiff_t count = SPECPDL_INDEX ();