Bugfixes/testing changes

This commit is contained in:
Pyrex 2024-02-26 15:27:05 -08:00
parent cb44cab4f8
commit c478ee23db
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ def main(font_name, n_glyphs, fname_png, fname_c):
with open(fname_c, "wt") as output:
output.writelines([
"// generated code! be nice!\n",
"#include \"sys/sys.h\";\n",
"#include \"sys/sys.h\"\n",
f"sys_glyph {font_name}[{n_glyphs}] = {{{', '.join(str(g) for g in glyphs)}}};\n"
])

View File

@ -95,7 +95,7 @@ void sdl_host_suggest_dimensions(uint32_t* window_w, uint32_t* window_h) {
dm.h = 0;
}
for (int scalar = 5; scalar >= 1; scalar--) {
for (int scalar = 2; scalar >= 1; scalar--) {
uint32_t w = DEVICE_W * scalar;
uint32_t h = DEVICE_H * scalar;
if (w <= dm.w && h <= dm.h) {