aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2000-12-02 21:05:01 +0000
committerJason Rumney2000-12-02 21:05:01 +0000
commit250cfeced5d481cb45c56d292372e12d51aac777 (patch)
treeddb0286c05f87e24396482dfb43a213720706754 /src
parentf03fad2222e1e39a5f262f54e86c45338e6f36d4 (diff)
downloademacs-250cfeced5d481cb45c56d292372e12d51aac777.tar.gz
emacs-250cfeced5d481cb45c56d292372e12d51aac777.zip
(x_estimate_mode_line_height): If `mode-line' face hasn't a font, use
that of the frame, as drawing glyphs does. (note_mouse_highlight): Change the cursor shape on the vertical border between windows [not enabled].
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog14
-rw-r--r--src/w32term.c12
2 files changed, 24 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7f27f5597a4..e27ef1a6e8b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -4,6 +4,20 @@
4 correctly for single byte character case. 4 correctly for single byte character case.
5 (w32_per_char_metric): Do not try to make any assumptions about 5 (w32_per_char_metric): Do not try to make any assumptions about
6 the metrics of BDF fonts. 6 the metrics of BDF fonts.
7 (x_estimate_mode_line_height): If `mode-line' face
8 hasn't a font, use that of the frame, as drawing glyphs
9 does.
10 (note_mouse_highlight): Change the cursor shape on the vertical
11 border between windows [not enabled].
12
13 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
14
15 * w32fns.c (Fx_create_frame): Reintroduce the call to
16 face-set-after-frame-defaults.
17 (Vx_window_horizontal_drag_shape): New variable.
18 (syms_of_xfns): DEFVAR_LISP it.
19 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
20 enabled].
7 21
82000-12-02 Simon Josefsson <simon@josefsson.org> 222000-12-02 Simon Josefsson <simon@josefsson.org>
9 23
diff --git a/src/w32term.c b/src/w32term.c
index 4e80e88c10e..23cefb20955 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2511,7 +2511,7 @@ x_estimate_mode_line_height (f, face_id)
2511 struct frame *f; 2511 struct frame *f;
2512 enum face_id face_id; 2512 enum face_id face_id;
2513{ 2513{
2514 int height = 1; 2514 int height = FONT_HEIGHT (FRAME_FONT (f));
2515 2515
2516 /* This function is called so early when Emacs starts that the face 2516 /* This function is called so early when Emacs starts that the face
2517 cache and mode line face are not yet initialized. */ 2517 cache and mode line face are not yet initialized. */
@@ -2519,7 +2519,12 @@ x_estimate_mode_line_height (f, face_id)
2519 { 2519 {
2520 struct face *face = FACE_FROM_ID (f, face_id); 2520 struct face *face = FACE_FROM_ID (f, face_id);
2521 if (face) 2521 if (face)
2522 height = FONT_HEIGHT (face->font) + 2 * face->box_line_width; 2522 {
2523 if (face->font)
2524 height = FONT_HEIGHT (face->font);
2525 height += 2 * face->box_line_width;
2526 }
2527
2523 } 2528 }
2524 2529
2525 return height; 2530 return height;
@@ -6365,6 +6370,9 @@ note_mouse_highlight (f, x, y)
6365 return; 6370 return;
6366 } 6371 }
6367#if 0 /* TODO: mouse cursor */ 6372#if 0 /* TODO: mouse cursor */
6373 else if (portion == 2)
6374 XDefineCursor (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
6375 f->output_data.x->horizontal_drag_cursor);
6368 else 6376 else
6369 XDefineCursor (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 6377 XDefineCursor (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
6370 f->output_data.x->text_cursor); 6378 f->output_data.x->text_cursor);