]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last change to ftcrfont.c
authorPo Lu <luangruo@yahoo.com>
Sat, 5 Feb 2022 03:20:45 +0000 (03:20 +0000)
committerPo Lu <luangruo@yahoo.com>
Sat, 5 Feb 2022 03:21:17 +0000 (03:21 +0000)
* src/ftcrfont.c (ftcrfont_draw): Remove relic `face' variable
and use s->face instead.

src/ftcrfont.c

index 87a8692a3b8ce4c4e2c407277630d4c448e37aa3..a0a3490c4942314d308a53fc6d9dcd20f7913a49 100644 (file)
@@ -571,8 +571,6 @@ ftcrfont_draw (struct glyph_string *s,
       pgtk_set_cr_source_with_color (f, s->xgcv.background, true);
 #endif
 #else
-      struct face *face = s->face;
-
       uint32_t col = be_background;
 
       cairo_set_source_rgb (cr, RED_FROM_ULONG (col) / 255.0,
@@ -580,8 +578,8 @@ ftcrfont_draw (struct glyph_string *s,
                            BLUE_FROM_ULONG (col) / 255.0);
 #endif
       s->background_filled_p = 1;
-      cairo_rectangle (cr, x, y - FONT_BASE (face->font),
-                      s->width, FONT_HEIGHT (face->font));
+      cairo_rectangle (cr, x, y - FONT_BASE (s->font),
+                      s->width, FONT_HEIGHT (s->font));
       cairo_fill (cr);
     }