summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-07-23 13:06:09 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-07-23 13:06:09 +0300
commitb6f430ac5439bc452dc737d960e3cbb14320ee7f (patch)
tree941aea5cd45cd7d1f932eaf587aed2a85cafe99a /src
parente8150ae4a59891eab62a77302d8ff2834a2e8f39 (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')
-rw-r--r--src/ui/text.c2
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,