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);
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user