2252 |
adjust_frame_glyphs_for_frame_redisplay (f) |
adjust_frame_glyphs_for_frame_redisplay (f) |
2253 |
struct frame *f; |
struct frame *f; |
2254 |
{ |
{ |
|
struct dim ch_dim; |
|
2255 |
struct dim matrix_dim; |
struct dim matrix_dim; |
2256 |
int pool_changed_p; |
int pool_changed_p; |
2257 |
int window_change_flags; |
int window_change_flags; |
2260 |
if (!FRAME_LIVE_P (f)) |
if (!FRAME_LIVE_P (f)) |
2261 |
return; |
return; |
2262 |
|
|
|
/* Determine the smallest character in any font for F. On |
|
|
console windows, all characters have dimension (1, 1). */ |
|
|
ch_dim.width = ch_dim.height = 1; |
|
|
|
|
2263 |
top_window_y = FRAME_TOP_MARGIN (f); |
top_window_y = FRAME_TOP_MARGIN (f); |
2264 |
|
|
2265 |
/* Allocate glyph pool structures if not already done. */ |
/* Allocate glyph pool structures if not already done. */ |
2348 |
adjust_frame_glyphs_for_window_redisplay (f) |
adjust_frame_glyphs_for_window_redisplay (f) |
2349 |
struct frame *f; |
struct frame *f; |
2350 |
{ |
{ |
|
struct dim ch_dim; |
|
2351 |
struct window *w; |
struct window *w; |
2352 |
|
|
2353 |
xassert (FRAME_WINDOW_P (f) && FRAME_LIVE_P (f)); |
xassert (FRAME_WINDOW_P (f) && FRAME_LIVE_P (f)); |
2354 |
|
|
|
/* Get minimum sizes. */ |
|
|
#ifdef HAVE_WINDOW_SYSTEM |
|
|
ch_dim.width = FRAME_SMALLEST_CHAR_WIDTH (f); |
|
|
ch_dim.height = FRAME_SMALLEST_FONT_HEIGHT (f); |
|
|
#else |
|
|
ch_dim.width = ch_dim.height = 1; |
|
|
#endif |
|
|
|
|
2355 |
/* Allocate/reallocate window matrices. */ |
/* Allocate/reallocate window matrices. */ |
2356 |
allocate_matrices_for_window_redisplay (XWINDOW (FRAME_ROOT_WINDOW (f))); |
allocate_matrices_for_window_redisplay (XWINDOW (FRAME_ROOT_WINDOW (f))); |
2357 |
|
|