This patch fixes window geometry to do the right thing (i.e. not include
the frame gutters). It means that ispell and friends should now work again.
andy
2000-02-25 Andy Piper <andy(a)xemacs.org>
* window.c (window_top_frame_gutter_height): new function.
(window_top_window_gutter_height): ditto.
(window_top_gutter_height): use them.
(window_bottom_frame_gutter_height): new function.
(window_bottom_window_gutter_height): ditto.
(window_bottom_gutter_height): use them.
(window_left_window_gutter_width): new function.
(window_left_frame_gutter_width): ditto.
(window_left_gutter_width): use them.
(window_right_window_gutter_width): new function.
(window_right_frame_gutter_width): ditto.
(window_right_gutter_width): use them.
(window_pixel_height): new function. calulate window pixel height
with frame gutter involvement.
(Fsplit_window): calculate new sizes taking frame gutters into
account.
(window_char_height_to_pixel_height): don't include frame gutters.
(window_char_height): use window_pixel_height.
(window_pixheight): rename from window_pixel_height.
(change_window_height): use it.
(window_pixel_height_to_char_height): don't include frame gutters.
(window_char_width_to_pixel_width): ditto.
--------------------------------------------------------------
Dr Andy Piper
Senior Consultant Architect, BEA Systems Ltd
Show replies by date