]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix minor typos in haikuterm.c
authorPo Lu <luangruo@yahoo.com>
Wed, 1 May 2024 13:34:50 +0000 (21:34 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:30:46 +0000 (18:30 +0200)
* src/haikuterm.c (haiku_fill_underline)
(haiku_draw_text_decoration): Don't pass view to unused frame
parameter.

(cherry picked from commit 83bdeee92b0c8bf27ff18f99f3414c725308d2ed)

src/haikuterm.c

index b960e36ef266fdc64c483ded7bb50953c4fd6e35..09d70230babe0844bc47354f1c6ea0723cd89814 100644 (file)
@@ -856,7 +856,7 @@ haiku_fill_underline (struct frame *f, struct glyph_string *s,
   void *view;
 
   segment = thickness * 3;
-  view = FRAME_HAIKU_VIEW (s->f);
+  view = FRAME_HAIKU_VIEW (f);
 
   switch (style)
     {
@@ -989,7 +989,7 @@ haiku_draw_text_decoration (struct glyph_string *s, struct face *face,
          s->underline_thickness = thickness;
          s->underline_position = position;
 
-         haiku_fill_underline (view, s, s->face->underline,
+         haiku_fill_underline (s->f, s, s->face->underline,
                                position, thickness);
 
          /* Place a second underline above the first if this was
@@ -999,7 +999,7 @@ haiku_draw_text_decoration (struct glyph_string *s, struct face *face,
            {
              /* Compute the position of the second underline.  */
              position = position - thickness - 1;
-             haiku_fill_underline (view, s, s->face->underline,
+             haiku_fill_underline (s->f, s, s->face->underline,
                                    position, thickness);
            }
        }