mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 22:30:15 +00:00
dwrite: Pass correct font key when adding glyph to cache.
Without this fix, the font cache was filling up with lots of duplicate entries, and getting cache misses, thereby causing font-intensive applications to be very slow (e.g. AvalonEdit). This fix provides 30x speed increase when processing glyphs.
This commit is contained in:
parent
b9627b996f
commit
7eb1ac5143
|
@ -98,7 +98,7 @@ static struct cache_entry * fontface_get_cache_entry(struct dwrite_fontface *fon
|
||||||
fontface_release_cache_entry(old_entry);
|
fontface_release_cache_entry(old_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wine_rb_put(&fontface->cache.tree, &key, &entry->entry) == -1)
|
if (wine_rb_put(&fontface->cache.tree, key, &entry->entry) == -1)
|
||||||
{
|
{
|
||||||
WARN("Failed to add cache entry.\n");
|
WARN("Failed to add cache entry.\n");
|
||||||
free(entry);
|
free(entry);
|
||||||
|
|
Loading…
Reference in a new issue