Fix stupid comparison bug

Previously, dim.width < dim.height would never return true, since it is
already checked by dim.height >= dim.width.
This commit is contained in:
scorpion-26 2023-07-19 01:01:16 +02:00
parent ba366729fe
commit e4be65a348

View file

@ -304,7 +304,7 @@ Quad CairoArea::GetQuad()
q.x = 0;
q.y = ((double)dim.height - (double)dim.width) / 2;
}
else if (dim.width < dim.height)
else if (dim.height < dim.width)
{
// Height greater than width; Fill in y and add margin at the sides
q.size = dim.height;