diff options
| author | Martin Rudalics | 2013-12-30 10:14:29 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2013-12-30 10:14:29 +0100 |
| commit | 564eb533f9f36bbc1a18ea17522d97fa21d1b4bc (patch) | |
| tree | c6d2b403f425822fb05784a15c534d31922ca55a /src | |
| parent | dcd812be6a39c9290339bfaba48e64d65713168b (diff) | |
| download | emacs-564eb533f9f36bbc1a18ea17522d97fa21d1b4bc.tar.gz emacs-564eb533f9f36bbc1a18ea17522d97fa21d1b4bc.zip | |
Fix Bug#16284.
* dispnew.c (change_frame_size_1): Take old width of root window
from that window's pixel width. Bug#16284.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/dispnew.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e1e9777fa4f..fd2b6db1165 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-12-30 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * dispnew.c (change_frame_size_1): Take old width of root window | ||
| 4 | from that window's pixel width. Bug#16284. | ||
| 5 | |||
| 1 | 2013-12-29 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2013-12-29 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Plain copy-file no longer chmods an existing destination (Bug#16133). | 8 | 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, | |||
| 5463 | bool pretend, bool delay, bool safe, bool pixelwise) | 5463 | bool pretend, bool delay, bool safe, bool pixelwise) |
| 5464 | { | 5464 | { |
| 5465 | int new_text_width, new_text_height, new_root_width; | 5465 | int new_text_width, new_text_height, new_root_width; |
| 5466 | int old_root_width = (FRAME_PIXEL_WIDTH (f) | 5466 | int old_root_width = WINDOW_PIXEL_WIDTH (XWINDOW (FRAME_ROOT_WINDOW (f))); |
| 5467 | - 2 * FRAME_INTERNAL_BORDER_WIDTH (f)); | ||
| 5468 | int new_cols, new_lines; | 5467 | int new_cols, new_lines; |
| 5469 | ptrdiff_t count = SPECPDL_INDEX (); | 5468 | ptrdiff_t count = SPECPDL_INDEX (); |
| 5470 | 5469 | ||