paint: custom layer res
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user