common: change args type in the internal size() implementation
authorMira Grudzinska <m.grudzinska@samsung.com>
Mon, 20 Sep 2021 11:49:19 +0000 (13:49 +0200)
committerHermet Park <chuneon.park@samsung.com>
Mon, 27 Sep 2021 02:20:49 +0000 (11:20 +0900)
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

index 5f19377..02dc4b1 100644 (file)
@@ -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;