[gtk/matthiasc/for-master] ngl: Add padding between cached glyphs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] ngl: Add padding between cached glyphs
- Date: Fri, 14 May 2021 22:45:52 +0000 (UTC)
commit aa76765aa9d6c0cd614468d5de37b696e31c6ba3
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 14 18:43:52 2021 -0400
ngl: Add padding between cached glyphs
Without this, adjacent items in the cache sometimes
bleed into the texture for a glyph.
gsk/ngl/gsknglglyphlibrary.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/ngl/gsknglglyphlibrary.c b/gsk/ngl/gsknglglyphlibrary.c
index 2179a804d7..3f998f4a05 100644
--- a/gsk/ngl/gsknglglyphlibrary.c
+++ b/gsk/ngl/gsknglglyphlibrary.c
@@ -318,7 +318,7 @@ gsk_ngl_glyph_library_add (GskNglGlyphLibrary *self,
sizeof *value,
width,
height,
- 0,
+ 1,
&packed_x, &packed_y);
memcpy (&value->ink_rect, &ink_rect, sizeof ink_rect);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]