common scene: fixing the initial values of variables in the bounds getter

The values of the most bottom right corner of the scene bounding box
should be initialized with the biggest negative values.
Also an empty line removed.
This commit is contained in:
Mira Grudzinska 2021-05-27 02:49:10 +02:00 committed by Hermet Park
parent aeb10fafec
commit fbd24c3c93

View file

@ -100,7 +100,6 @@ struct Scene::Impl
uint32_t y2 = 0;
for (auto paint = paints.data; paint < (paints.data + paints.count); ++paint) {
auto region = (*paint)->pImpl->bounds(renderer);
//Merge regions
@ -119,8 +118,8 @@ struct Scene::Impl
auto x1 = FLT_MAX;
auto y1 = FLT_MAX;
auto x2 = 0.0f;
auto y2 = 0.0f;
auto x2 = -FLT_MAX;
auto y2 = -FLT_MAX;
for (auto paint = paints.data; paint < (paints.data + paints.count); ++paint) {
auto x = FLT_MAX;