paint: custom layer res

This commit is contained in:
luboslenco
2026-06-04 20:45:16 +02:00
parent 4dd9bdd588
commit e0da7ca817
13 changed files with 65 additions and 104 deletions
+2
View File
@@ -300,6 +300,8 @@ void import_arm_run_project(char *path) {
gc_root(g_project);
layer_data_t *l0 = project->layer_datas->buffer[0];
base_res_handle->i = config_get_texture_res_pos(l0->res);
base_res_x_handle->f = (f32)l0->res;
base_res_y_handle->f = (f32)l0->res;
texture_bits_t bits_pos = l0->bpp == 8 ? TEXTURE_BITS_BITS8 : l0->bpp == 16 ? TEXTURE_BITS_BITS16 : TEXTURE_BITS_BITS32;
base_bits_handle->i = bits_pos;
i32 bytes_per_pixel = math_floor(l0->bpp / 8.0);