diff options
author | Timm Bäder <mail@baedert.org> | 2018-03-02 17:22:46 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-03-04 19:12:04 +0100 |
commit | da431b2a433b90a02448905421dc35d3f047d7bf (patch) | |
tree | f6b7e1a7ec1ab2bec147efaf55e79f016d052155 /gsk | |
parent | cfbac153a35ea524273ce498f205948df7dc935c (diff) | |
download | gtk+-da431b2a433b90a02448905421dc35d3f047d7bf.tar.gz |
glglyphcache: Pass lookup key to g_hash_table_lookup directly
Diffstat (limited to 'gsk')
-rw-r--r-- | gsk/gl/gskglglyphcache.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gsk/gl/gskglglyphcache.c b/gsk/gl/gskglglyphcache.c index 5012eb82a2..e1d9ffd50b 100644 --- a/gsk/gl/gskglglyphcache.c +++ b/gsk/gl/gskglglyphcache.c @@ -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) { |