From 90fa4fbe6dfa3ea5a08e3b03af7d0fafd2baffdb Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Mon, 20 Sep 2021 13:49:19 +0200 Subject: [PATCH] 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. --- src/lib/tvgPictureImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tvgPictureImpl.h b/src/lib/tvgPictureImpl.h index 5f19377d..02dc4b14 100644 --- a/src/lib/tvgPictureImpl.h +++ b/src/lib/tvgPictureImpl.h @@ -159,7 +159,7 @@ struct Picture::Impl return true; } - bool size(uint32_t w, uint32_t h) + bool size(float w, float h) { this->w = w; this->h = h;