Bugfixes/testing changes
This commit is contained in:
parent
cb44cab4f8
commit
c478ee23db
@ -10,7 +10,7 @@ def main(font_name, n_glyphs, fname_png, fname_c):
|
|||||||
with open(fname_c, "wt") as output:
|
with open(fname_c, "wt") as output:
|
||||||
output.writelines([
|
output.writelines([
|
||||||
"// generated code! be nice!\n",
|
"// 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"
|
f"sys_glyph {font_name}[{n_glyphs}] = {{{', '.join(str(g) for g in glyphs)}}};\n"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ void sdl_host_suggest_dimensions(uint32_t* window_w, uint32_t* window_h) {
|
|||||||
dm.h = 0;
|
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 w = DEVICE_W * scalar;
|
||||||
uint32_t h = DEVICE_H * scalar;
|
uint32_t h = DEVICE_H * scalar;
|
||||||
if (w <= dm.w && h <= dm.h) {
|
if (w <= dm.w && h <= dm.h) {
|
||||||
|
Loading…
Reference in New Issue
Block a user