comparison src/dispnew.c @ 89547:73bdeb6f6968

(adjust_frame_glyphs_for_frame_redisplay) (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
author Dave Love <fx@gnu.org>
date Mon, 29 Sep 2003 18:01:37 +0000
parents 2f877ed80fa6
children 68c22ea6027c
comparison
equal deleted inserted replaced
89546:c380df3cc4df 89547:73bdeb6f6968
2250 2250
2251 static void 2251 static void
2252 adjust_frame_glyphs_for_frame_redisplay (f) 2252 adjust_frame_glyphs_for_frame_redisplay (f)
2253 struct frame *f; 2253 struct frame *f;
2254 { 2254 {
2255 struct dim ch_dim;
2256 struct dim matrix_dim; 2255 struct dim matrix_dim;
2257 int pool_changed_p; 2256 int pool_changed_p;
2258 int window_change_flags; 2257 int window_change_flags;
2259 int top_window_y; 2258 int top_window_y;
2260 2259
2261 if (!FRAME_LIVE_P (f)) 2260 if (!FRAME_LIVE_P (f))
2262 return; 2261 return;
2263
2264 /* Determine the smallest character in any font for F. On
2265 console windows, all characters have dimension (1, 1). */
2266 ch_dim.width = ch_dim.height = 1;
2267 2262
2268 top_window_y = FRAME_TOP_MARGIN (f); 2263 top_window_y = FRAME_TOP_MARGIN (f);
2269 2264
2270 /* Allocate glyph pool structures if not already done. */ 2265 /* Allocate glyph pool structures if not already done. */
2271 if (f->desired_pool == NULL) 2266 if (f->desired_pool == NULL)
2351 2346
2352 static void 2347 static void
2353 adjust_frame_glyphs_for_window_redisplay (f) 2348 adjust_frame_glyphs_for_window_redisplay (f)
2354 struct frame *f; 2349 struct frame *f;
2355 { 2350 {
2356 struct dim ch_dim;
2357 struct window *w; 2351 struct window *w;
2358 2352
2359 xassert (FRAME_WINDOW_P (f) && FRAME_LIVE_P (f)); 2353 xassert (FRAME_WINDOW_P (f) && FRAME_LIVE_P (f));
2360
2361 /* Get minimum sizes. */
2362 #ifdef HAVE_WINDOW_SYSTEM
2363 ch_dim.width = FRAME_SMALLEST_CHAR_WIDTH (f);
2364 ch_dim.height = FRAME_SMALLEST_FONT_HEIGHT (f);
2365 #else
2366 ch_dim.width = ch_dim.height = 1;
2367 #endif
2368 2354
2369 /* Allocate/reallocate window matrices. */ 2355 /* Allocate/reallocate window matrices. */
2370 allocate_matrices_for_window_redisplay (XWINDOW (FRAME_ROOT_WINDOW (f))); 2356 allocate_matrices_for_window_redisplay (XWINDOW (FRAME_ROOT_WINDOW (f)));
2371 2357
2372 /* Allocate/ reallocate matrices of the dummy window used to display 2358 /* Allocate/ reallocate matrices of the dummy window used to display