diff options
| author | YAMAMOTO Mitsuharu | 2006-10-16 08:58:20 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2006-10-16 08:58:20 +0000 |
| commit | 8ce2650dbe01325314e33d1e7d01c2abec3bcf31 (patch) | |
| tree | 7cefe0476c5c7a0e7b0b69f9910bbdee723cf1e1 /src | |
| parent | fc53ebf6bd1fb05e119db7f68114b317d7def7ae (diff) | |
| download | emacs-8ce2650dbe01325314e33d1e7d01c2abec3bcf31.tar.gz emacs-8ce2650dbe01325314e33d1e7d01c2abec3bcf31.zip | |
(adjust_frame_glyphs_for_frame_redisplay): Remove unused variable ch_dim.
(adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
menu bar window matrices on non-X systems.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 59f109df45b..3a9b72afaa7 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -1797,11 +1797,9 @@ check_matrix_invariants (w) | |||
| 1797 | 1797 | ||
| 1798 | X and Y are column/row within the frame glyph matrix where | 1798 | X and Y are column/row within the frame glyph matrix where |
| 1799 | sub-matrices for the window tree rooted at WINDOW must be | 1799 | sub-matrices for the window tree rooted at WINDOW must be |
| 1800 | allocated. CH_DIM contains the dimensions of the smallest | 1800 | allocated. DIM_ONLY_P non-zero means that the caller of this |
| 1801 | character that could be used during display. DIM_ONLY_P non-zero | 1801 | function is only interested in the result matrix dimension, and |
| 1802 | means that the caller of this function is only interested in the | 1802 | matrix adjustments should not be performed. |
| 1803 | result matrix dimension, and matrix adjustments should not be | ||
| 1804 | performed. | ||
| 1805 | 1803 | ||
| 1806 | The function returns the total width/height of the sub-matrices of | 1804 | The function returns the total width/height of the sub-matrices of |
| 1807 | the window tree. If called on a frame root window, the computation | 1805 | the window tree. If called on a frame root window, the computation |
| @@ -2049,8 +2047,7 @@ required_matrix_width (w) | |||
| 2049 | 2047 | ||
| 2050 | 2048 | ||
| 2051 | /* Allocate window matrices for window-based redisplay. W is the | 2049 | /* Allocate window matrices for window-based redisplay. W is the |
| 2052 | window whose matrices must be allocated/reallocated. CH_DIM is the | 2050 | window whose matrices must be allocated/reallocated. */ |
| 2053 | size of the smallest character that could potentially be used on W. */ | ||
| 2054 | 2051 | ||
| 2055 | static void | 2052 | static void |
| 2056 | allocate_matrices_for_window_redisplay (w) | 2053 | allocate_matrices_for_window_redisplay (w) |
| @@ -2283,7 +2280,6 @@ static void | |||
| 2283 | adjust_frame_glyphs_for_frame_redisplay (f) | 2280 | adjust_frame_glyphs_for_frame_redisplay (f) |
| 2284 | struct frame *f; | 2281 | struct frame *f; |
| 2285 | { | 2282 | { |
| 2286 | struct dim ch_dim; | ||
| 2287 | struct dim matrix_dim; | 2283 | struct dim matrix_dim; |
| 2288 | int pool_changed_p; | 2284 | int pool_changed_p; |
| 2289 | int window_change_flags; | 2285 | int window_change_flags; |
| @@ -2292,10 +2288,6 @@ adjust_frame_glyphs_for_frame_redisplay (f) | |||
| 2292 | if (!FRAME_LIVE_P (f)) | 2288 | if (!FRAME_LIVE_P (f)) |
| 2293 | return; | 2289 | return; |
| 2294 | 2290 | ||
| 2295 | /* Determine the smallest character in any font for F. On | ||
| 2296 | console windows, all characters have dimension (1, 1). */ | ||
| 2297 | ch_dim.width = ch_dim.height = 1; | ||
| 2298 | |||
| 2299 | top_window_y = FRAME_TOP_MARGIN (f); | 2291 | top_window_y = FRAME_TOP_MARGIN (f); |
| 2300 | 2292 | ||
| 2301 | /* Allocate glyph pool structures if not already done. */ | 2293 | /* Allocate glyph pool structures if not already done. */ |
| @@ -2384,22 +2376,14 @@ static void | |||
| 2384 | adjust_frame_glyphs_for_window_redisplay (f) | 2376 | adjust_frame_glyphs_for_window_redisplay (f) |
| 2385 | struct frame *f; | 2377 | struct frame *f; |
| 2386 | { | 2378 | { |
| 2387 | struct dim ch_dim; | ||
| 2388 | struct window *w; | 2379 | struct window *w; |
| 2389 | 2380 | ||
| 2390 | xassert (FRAME_WINDOW_P (f) && FRAME_LIVE_P (f)); | 2381 | xassert (FRAME_WINDOW_P (f) && FRAME_LIVE_P (f)); |
| 2391 | 2382 | ||
| 2392 | /* Get minimum sizes. */ | ||
| 2393 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 2394 | ch_dim.width = FRAME_SMALLEST_CHAR_WIDTH (f); | ||
| 2395 | ch_dim.height = FRAME_SMALLEST_FONT_HEIGHT (f); | ||
| 2396 | #else | ||
| 2397 | ch_dim.width = ch_dim.height = 1; | ||
| 2398 | #endif | ||
| 2399 | |||
| 2400 | /* Allocate/reallocate window matrices. */ | 2383 | /* Allocate/reallocate window matrices. */ |
| 2401 | allocate_matrices_for_window_redisplay (XWINDOW (FRAME_ROOT_WINDOW (f))); | 2384 | allocate_matrices_for_window_redisplay (XWINDOW (FRAME_ROOT_WINDOW (f))); |
| 2402 | 2385 | ||
| 2386 | #ifdef HAVE_X_WINDOWS | ||
| 2403 | /* Allocate/ reallocate matrices of the dummy window used to display | 2387 | /* Allocate/ reallocate matrices of the dummy window used to display |
| 2404 | the menu bar under X when no X toolkit support is available. */ | 2388 | the menu bar under X when no X toolkit support is available. */ |
| 2405 | #if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) | 2389 | #if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) |
| @@ -2424,6 +2408,7 @@ adjust_frame_glyphs_for_window_redisplay (f) | |||
| 2424 | allocate_matrices_for_window_redisplay (w); | 2408 | allocate_matrices_for_window_redisplay (w); |
| 2425 | } | 2409 | } |
| 2426 | #endif /* not USE_X_TOOLKIT */ | 2410 | #endif /* not USE_X_TOOLKIT */ |
| 2411 | #endif /* not HAVE_X_WINDOWS */ | ||
| 2427 | 2412 | ||
| 2428 | #ifndef USE_GTK | 2413 | #ifndef USE_GTK |
| 2429 | /* Allocate/ reallocate matrices of the tool bar window. If we | 2414 | /* Allocate/ reallocate matrices of the tool bar window. If we |