forked from AuroraMiddleware/gtk
glyph cache: Reinstate 1 pixel padding
This is necessary to prevent bleeding.
This commit is contained in:
parent
f37274dbb0
commit
2529385fe4
@ -168,8 +168,8 @@ add_to_cache (GskGLGlyphCache *cache,
|
||||
g_assert (was_packed);
|
||||
}
|
||||
|
||||
value->tx = (float)packed_x / atlas->width;
|
||||
value->ty = (float)packed_y / atlas->height;
|
||||
value->tx = (float)(packed_x + 1) / atlas->width;
|
||||
value->ty = (float)(packed_y + 1) / atlas->height;
|
||||
value->tw = (float)width / atlas->width;
|
||||
value->th = (float)height / atlas->height;
|
||||
value->used = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user