Fix coord types

This commit is contained in:
Fierelier 2024-09-25 21:17:32 +02:00
parent 8286d50145
commit aad31b2951
2 changed files with 2 additions and 2 deletions

2
main.c
View File

@ -40,7 +40,7 @@ void unigi_ext_texture_draw(unigi_ext_type_texture *sprite, unigi_ext_type_textu
} }
} }
unigi_ext_type_texture * unigi_ext_texture_create(unigi_ext_type_2d_coord width, unigi_ext_type_2d_coord height) { unigi_ext_type_texture * unigi_ext_texture_create(unigi_type_resolution_2d_coord width, unigi_type_resolution_2d_coord height) {
unigi_ext_type_texture * texture = malloc(sizeof(unigi_ext_type_texture)); unigi_ext_type_texture * texture = malloc(sizeof(unigi_ext_type_texture));
if (texture == NULL) { return NULL; } if (texture == NULL) { return NULL; }
texture->width = width; texture->width = width;

2
main.h
View File

@ -11,7 +11,7 @@ void unigi_ext_texture_draw(
unigi_ext_type_rect bufbounds unigi_ext_type_rect bufbounds
); );
void unigi_ext_rect_dimensions(unigi_ext_type_rect bounds, unigi_ext_type_2d_coord * width, unigi_ext_type_2d_coord * height); void unigi_ext_rect_dimensions(unigi_ext_type_rect bounds, unigi_ext_type_2d_coord * width, unigi_ext_type_2d_coord * height);
unigi_ext_type_texture * unigi_ext_texture_create(unigi_ext_type_2d_coord width, unigi_ext_type_2d_coord height); unigi_ext_type_texture * unigi_ext_texture_create(unigi_type_resolution_2d_coord width, unigi_type_resolution_2d_coord height);
void unigi_ext_texture_destroy(unigi_ext_type_texture * texture); void unigi_ext_texture_destroy(unigi_ext_type_texture * texture);
unigi_ext_type_texture * unigi_ext_texture_open(char * path); unigi_ext_type_texture * unigi_ext_texture_open(char * path);