Skip to content

Commit 8b37124

Browse files
committed
Sort VideoMode by (width,height)-tuple only
1 parent 755d3c0 commit 8b37124

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

libs/driver/include/driver/VideoMode.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ struct VideoMode
1616
constexpr bool operator!=(const VideoMode& o) const { return !(*this == o); }
1717
constexpr bool operator<(const VideoMode& o) const
1818
{
19-
const auto area = static_cast<unsigned>(width) * height;
20-
const auto otherArea = static_cast<unsigned>(o.width) * o.height;
21-
if(area != otherArea)
22-
return area < otherArea;
2319
if(width != o.width)
2420
return width < o.width;
2521
return height < o.height;

0 commit comments

Comments
 (0)