diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-23 13:06:09 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-23 13:06:09 +0300 |
commit | b6f430ac5439bc452dc737d960e3cbb14320ee7f (patch) | |
tree | 941aea5cd45cd7d1f932eaf587aed2a85cafe99a /src/ui | |
parent | e8150ae4a59891eab62a77302d8ff2834a2e8f39 (diff) |
Text: Larger glyph cache
Now we have twice as many glyphs since the half-pixel offset variants
are also cached.
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/text.c b/src/ui/text.c index d4f46116..27c41396 100644 --- a/src/ui/text.c +++ b/src/ui/text.c | |||
@@ -105,7 +105,7 @@ void init_Text(SDL_Renderer *render) { | |||
105 | SDL_SetPaletteColors(d->grayscale, colors, 0, 256); | 105 | SDL_SetPaletteColors(d->grayscale, colors, 0, 256); |
106 | } | 106 | } |
107 | /* Initialize the glyph cache. */ { | 107 | /* Initialize the glyph cache. */ { |
108 | d->cacheSize = init1_I2(fontSize_UI * 16); | 108 | d->cacheSize = init1_I2(fontSize_UI * 32); |
109 | d->cachePos = zero_I2(); | 109 | d->cachePos = zero_I2(); |
110 | d->cache = SDL_CreateTexture(render, | 110 | d->cache = SDL_CreateTexture(render, |
111 | SDL_PIXELFORMAT_RGBA8888, | 111 | SDL_PIXELFORMAT_RGBA8888, |