Pretty draw app_events, s8->string

This commit is contained in:
krzosa
2024-12-29 10:34:08 +01:00
parent 6939170478
commit fddbbb9654
7 changed files with 33 additions and 24 deletions

View File

@@ -37,11 +37,10 @@ f64 s8_deserial_f64(s8_t string) {
return wasm_parse_float((isize)string.str, (i32)string.len);
}
void clip(r2f64_t rect) {
void set_clip(r2f64_t rect) {
wasm_set_clip(wasm_dpr * rect.min.x, wasm_dpr * rect.min.y, wasm_dpr * (rect.max.x - rect.min.x), wasm_dpr * (rect.max.y - rect.min.y));
}
f64 get_font_height(void) {
return wasm_get_font_height((isize) font_face, font_face_len, 20*wasm_dpr) / wasm_dpr;
}