common: change args type in the internal size() implementation

The API expected floats, whereas the called impl function expected
ints. The values were saved as floats, so the float->int->float conversion
is not needed.
This commit is contained in:
Mira Grudzinska 2021-09-20 13:49:19 +02:00 committed by Hermet Park
parent c5430684d1
commit 90fa4fbe6d

View file

@ -159,7 +159,7 @@ struct Picture::Impl
return true; return true;
} }
bool size(uint32_t w, uint32_t h) bool size(float w, float h)
{ {
this->w = w; this->w = w;
this->h = h; this->h = h;