glyph cache: Reinstate 1 pixel padding

This is necessary to prevent bleeding.
This commit is contained in:
Matthias Clasen 2019-06-02 16:02:31 +00:00
parent f37274dbb0
commit 2529385fe4

View File

@ -168,8 +168,8 @@ add_to_cache (GskGLGlyphCache *cache,
g_assert (was_packed); g_assert (was_packed);
} }
value->tx = (float)packed_x / atlas->width; value->tx = (float)(packed_x + 1) / atlas->width;
value->ty = (float)packed_y / atlas->height; value->ty = (float)(packed_y + 1) / atlas->height;
value->tw = (float)width / atlas->width; value->tw = (float)width / atlas->width;
value->th = (float)height / atlas->height; value->th = (float)height / atlas->height;
value->used = TRUE; value->used = TRUE;