fix(warning cleanup): added explicit casts to size_t -> IVector conversion
This commit is contained in:
parent
109cd51d14
commit
686c3c7578
|
@ -57,7 +57,7 @@ SDL_Texture* spritesheet_get_texture(const Spritesheet* self) {
|
|||
}
|
||||
|
||||
SDL_Rect spritesheet_get_tile_rect(const Spritesheet* self, size_t index) {
|
||||
IVector tile_coord = {index % self->tile_shear, index / self->tile_shear};
|
||||
IVector tile_coord = {(int)(index % self->tile_shear), (int)(index / self->tile_shear)};
|
||||
tile_coord = vmuli(tile_coord, self->tile_size);
|
||||
|
||||
return (SDL_Rect) {
|
||||
|
|
Loading…
Reference in a new issue