]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_estimate_mode_line_height): If `mode-line' face hasn't a font, use
authorJason Rumney <jasonr@gnu.org>
Sat, 2 Dec 2000 21:05:01 +0000 (21:05 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 2 Dec 2000 21:05:01 +0000 (21:05 +0000)
that of the frame, as drawing glyphs does.
(note_mouse_highlight): Change the cursor shape on the vertical
border between windows [not enabled].

src/ChangeLog
src/w32term.c

index 7f27f5597a4d675669452a03e378e0eccaa519fb..e27ef1a6e8b5187712f234abb2d64641f30b3508 100644 (file)
@@ -4,6 +4,20 @@
        correctly for single byte character case.
        (w32_per_char_metric): Do not try to make any assumptions about
        the metrics of BDF fonts.
+       (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].
+
+       * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
+
+       * w32fns.c (Fx_create_frame): Reintroduce the call to
+       face-set-after-frame-defaults.
+       (Vx_window_horizontal_drag_shape): New variable.
+       (syms_of_xfns): DEFVAR_LISP it.
+       (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
+       enabled].
 
 2000-12-02  Simon Josefsson  <simon@josefsson.org>
 
index 4e80e88c10e61d2eae6cc58c73d0c2cc71b32109..23cefb20955a44be8612f9110739ea35d8a98531 100644 (file)
@@ -2511,7 +2511,7 @@ x_estimate_mode_line_height (f, face_id)
      struct frame *f;
      enum face_id face_id;
 {
-  int height = 1;
+  int height = FONT_HEIGHT (FRAME_FONT (f));
 
   /* This function is called so early when Emacs starts that the face
      cache and mode line face are not yet initialized.  */
@@ -2519,7 +2519,12 @@ x_estimate_mode_line_height (f, face_id)
       {
        struct face *face = FACE_FROM_ID (f, face_id);
        if (face)
-         height = FONT_HEIGHT (face->font) + 2 * face->box_line_width;
+          {
+            if (face->font)
+              height = FONT_HEIGHT (face->font);
+            height += 2 * face->box_line_width;
+          }
+        
       }
   
   return height;
@@ -6365,6 +6370,9 @@ note_mouse_highlight (f, x, y)
       return;
     }
 #if 0 /* TODO: mouse cursor */
+  else if (portion == 2)
+    XDefineCursor (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
+                  f->output_data.x->horizontal_drag_cursor);
   else
     XDefineCursor (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
                   f->output_data.x->text_cursor);