mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
glglyphcache: Pass lookup key to g_hash_table_lookup directly
This commit is contained in:
parent
cfbac153a3
commit
da431b2a43
@ -315,14 +315,14 @@ gsk_gl_glyph_cache_lookup (GskGLGlyphCache *cache,
|
||||
PangoGlyph glyph,
|
||||
float scale)
|
||||
{
|
||||
GlyphCacheKey lookup_key;
|
||||
GskGLCachedGlyph *value;
|
||||
|
||||
lookup_key.font = font;
|
||||
lookup_key.glyph = glyph;
|
||||
lookup_key.scale = (guint)(scale * 1024);
|
||||
|
||||
value = g_hash_table_lookup (cache->hash_table, &lookup_key);
|
||||
value = g_hash_table_lookup (cache->hash_table,
|
||||
&(GlyphCacheKey) {
|
||||
.font = font,
|
||||
.glyph = glyph,
|
||||
.scale = (guint)(scale * 1024)
|
||||
});
|
||||
|
||||
if (value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user