summaryrefslogtreecommitdiff
path: root/gsk
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-03-02 17:22:46 +0100
committerTimm Bäder <mail@baedert.org>2018-03-04 19:12:04 +0100
commitda431b2a433b90a02448905421dc35d3f047d7bf (patch)
treef6b7e1a7ec1ab2bec147efaf55e79f016d052155 /gsk
parentcfbac153a35ea524273ce498f205948df7dc935c (diff)
downloadgtk+-da431b2a433b90a02448905421dc35d3f047d7bf.tar.gz
glglyphcache: Pass lookup key to g_hash_table_lookup directly
Diffstat (limited to 'gsk')
-rw-r--r--gsk/gl/gskglglyphcache.c12
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)
{