gsk: Fix big glyphs getting clipped

We were inadvertedly shifting the rendering by one pixel.
This commit is contained in:
Matthias Clasen 2024-01-12 15:54:42 -05:00
parent c1407f2ca6
commit 93715b963e

View File

@ -709,8 +709,8 @@ gsk_gpu_device_lookup_glyph_image (GskGpuDevice *self,
.height = rect.size.height + 2 * padding, .height = rect.size.height + 2 * padding,
}, },
scale, scale,
&GRAPHENE_POINT_INIT (cache->origin.x + 1, &GRAPHENE_POINT_INIT (cache->origin.x + padding,
cache->origin.y + 1)); cache->origin.y + padding));
g_hash_table_insert (priv->glyph_cache, cache, cache); g_hash_table_insert (priv->glyph_cache, cache, cache);
gsk_gpu_cached_use (self, (GskGpuCached *) cache, gsk_gpu_frame_get_timestamp (frame)); gsk_gpu_cached_use (self, (GskGpuCached *) cache, gsk_gpu_frame_get_timestamp (frame));