summaryrefslogtreecommitdiff
path: root/src/ui/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/text.c')
-rw-r--r--src/ui/text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 520ae74a..a803da97 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -210,7 +210,7 @@ static void initFonts_Text_(iText *d) {
210 const float monoSize = textSize * 0.71f; 210 const float monoSize = textSize * 0.71f;
211 const float smallMonoSize = monoSize * 0.8f; 211 const float smallMonoSize = monoSize * 0.8f;
212 const iBlock *regularFont = &fontNunitoRegular_Embedded; 212 const iBlock *regularFont = &fontNunitoRegular_Embedded;
213 const iBlock *boldFont = &fontNunitoExtraBold_Embedded; 213 const iBlock *boldFont = &fontNunitoBold_Embedded;
214 const iBlock *italicFont = &fontNunitoLightItalic_Embedded; 214 const iBlock *italicFont = &fontNunitoLightItalic_Embedded;
215 const iBlock *h12Font = &fontNunitoExtraBold_Embedded; 215 const iBlock *h12Font = &fontNunitoExtraBold_Embedded;
216 const iBlock *h3Font = &fontNunitoRegular_Embedded; 216 const iBlock *h3Font = &fontNunitoRegular_Embedded;
@@ -418,7 +418,7 @@ static void initCache_Text_(iText *d) {
418 if (renderInfo.max_texture_height > 0 && d->cacheSize.y > renderInfo.max_texture_height) { 418 if (renderInfo.max_texture_height > 0 && d->cacheSize.y > renderInfo.max_texture_height) {
419 d->cacheSize.y = renderInfo.max_texture_height; 419 d->cacheSize.y = renderInfo.max_texture_height;
420 d->cacheSize.x = renderInfo.max_texture_width; 420 d->cacheSize.x = renderInfo.max_texture_width;
421 } 421 }
422 d->cacheRowAllocStep = iMax(2, textSize / 6); 422 d->cacheRowAllocStep = iMax(2, textSize / 6);
423 /* Allocate initial (empty) rows. These will be assigned actual locations in the cache 423 /* Allocate initial (empty) rows. These will be assigned actual locations in the cache
424 once at least one glyph is stored. */ 424 once at least one glyph is stored. */
@@ -431,7 +431,7 @@ static void initCache_Text_(iText *d) {
431 SDL_PIXELFORMAT_RGBA4444, 431 SDL_PIXELFORMAT_RGBA4444,
432 SDL_TEXTUREACCESS_STATIC | SDL_TEXTUREACCESS_TARGET, 432 SDL_TEXTUREACCESS_STATIC | SDL_TEXTUREACCESS_TARGET,
433 d->cacheSize.x, 433 d->cacheSize.x,
434 d->cacheSize.y); 434 d->cacheSize.y);
435 SDL_SetTextureBlendMode(d->cache, SDL_BLENDMODE_BLEND); 435 SDL_SetTextureBlendMode(d->cache, SDL_BLENDMODE_BLEND);
436} 436}
437 437