fixed wrong font height

This commit is contained in:
vurtun 2016-04-01 21:54:55 +02:00
parent d9f1831321
commit a97ac0ea4d

View File

@ -435,7 +435,7 @@ main(int argc, char *argv[])
zr_font_atlas_init_default(&atlas); zr_font_atlas_init_default(&atlas);
zr_font_atlas_begin(&atlas); zr_font_atlas_begin(&atlas);
if (font_path) font = zr_font_atlas_add_from_file(&atlas, font_path, 30.0f, NULL); if (font_path) font = zr_font_atlas_add_from_file(&atlas, font_path, 14.0f, NULL);
else font = zr_font_atlas_add_default(&atlas, 14.0f, NULL); else font = zr_font_atlas_add_default(&atlas, 14.0f, NULL);
image = zr_font_atlas_bake(&atlas, &width, &height, ZR_FONT_ATLAS_RGBA32); image = zr_font_atlas_bake(&atlas, &width, &height, ZR_FONT_ATLAS_RGBA32);
device_upload_atlas(&device, image, width, height); device_upload_atlas(&device, image, width, height);