mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
gsk: Fix big glyphs getting clipped
We were inadvertedly shifting the rendering by one pixel.
This commit is contained in:
parent
c1407f2ca6
commit
93715b963e
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user