Mercurial > repos > blastem
comparison nuklear_ui/blastem_nuklear.c @ 2294:7e995fb948c3
Make UI font less comically large
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 10 Feb 2023 21:37:59 -0800 |
parents | 9e578fd493e1 |
children | a1c9edf44c7e |
comparison
equal
deleted
inserted
replaced
2293:3e0d463eb9b3 | 2294:7e995fb948c3 |
---|---|
2375 uint32_t font_size; | 2375 uint32_t font_size; |
2376 uint8_t *font = default_font(&font_size); | 2376 uint8_t *font = default_font(&font_size); |
2377 if (!font) { | 2377 if (!font) { |
2378 fatal_error("Failed to find default font path\n"); | 2378 fatal_error("Failed to find default font path\n"); |
2379 } | 2379 } |
2380 def_font = nk_font_atlas_add_from_memory(atlas, font, font_size, render_height() / 16, NULL); | 2380 def_font = nk_font_atlas_add_from_memory(atlas, font, font_size, render_height() / 24, NULL); |
2381 free(font); | 2381 free(font); |
2382 if (fb_context) { | 2382 if (fb_context) { |
2383 nk_rawfb_font_stash_end(fb_context); | 2383 nk_rawfb_font_stash_end(fb_context); |
2384 } else { | 2384 } else { |
2385 #ifndef DISABLE_OPENGL | 2385 #ifndef DISABLE_OPENGL |