mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 03:02:49 +00:00
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:
parent
ba366729fe
commit
e4be65a348
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue