fix(warning cleanup): added f suffix to literals to ensure correct precision
This commit is contained in:
parent
918e73c306
commit
109cd51d14
|
@ -42,10 +42,10 @@ void sprite_draw(Sprite* self, Transform transform) {
|
|||
|
||||
Vector origin = self->origin;
|
||||
if(self->flip_state && SDL_FLIP_HORIZONTAL) {
|
||||
origin.x = 1.0-origin.x;
|
||||
origin.x = 1.0f-origin.x;
|
||||
}
|
||||
if((self->flip_state & SDL_FLIP_VERTICAL) != 0) {
|
||||
origin.y = 1.0-origin.y;
|
||||
origin.y = 1.0f-origin.y;
|
||||
}
|
||||
|
||||
Vector left_top = transform_point(&transform, vinvf(origin));
|
||||
|
|
Loading…
Reference in a new issue