Mercurial > emacs
comparison src/frame.h @ 107799:44bc63178420
Fix resizing for X and non-Gtk+ build. Bug #5848.
* frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
FRAME_LINE_TO_PIXEL_Y.
* xterm.c (x_set_window_size_1): Don't add border_width/height to
pixelwidth/height.
author | Jan D <jan.h.d@swipnet.se> |
---|---|
date | Wed, 07 Apr 2010 13:45:08 +0200 |
parents | 04b6d1cf4d69 |
children | 34e533ec15e0 d7a48f464405 |
comparison
equal
deleted
inserted
replaced
107797:702528fcbb6a | 107799:44bc63178420 |
---|---|
995 + (f)->scroll_bar_actual_width \ | 995 + (f)->scroll_bar_actual_width \ |
996 + FRAME_TOTAL_FRINGE_WIDTH (f) \ | 996 + FRAME_TOTAL_FRINGE_WIDTH (f) \ |
997 + FRAME_INTERNAL_BORDER_WIDTH (f)) | 997 + FRAME_INTERNAL_BORDER_WIDTH (f)) |
998 | 998 |
999 #define FRAME_TEXT_LINES_TO_PIXEL_HEIGHT(f, lines) \ | 999 #define FRAME_TEXT_LINES_TO_PIXEL_HEIGHT(f, lines) \ |
1000 (FRAME_LINE_TO_PIXEL_Y (f, lines) \ | 1000 ((lines) * FRAME_LINE_HEIGHT (f) \ |
1001 + FRAME_INTERNAL_BORDER_WIDTH (f)) | 1001 + 2 * FRAME_INTERNAL_BORDER_WIDTH (f)) |
1002 | 1002 |
1003 | 1003 |
1004 /* Return the row/column (zero-based) of the character cell containing | 1004 /* Return the row/column (zero-based) of the character cell containing |
1005 the pixel on FRAME at Y/X. */ | 1005 the pixel on FRAME at Y/X. */ |
1006 | 1006 |