Skip to content

Commit 4360a20

Browse files
committed
Updated demo
1 parent f28d8cc commit 4360a20

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Sources/SDLDemo/main.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ if renderDrivers.isEmpty == false {
1515
info.options.forEach { print(" \($0)") }
1616
print("Formats:")
1717
info.formats.forEach { print(" \($0)") }
18-
print("Maximum Size:")
19-
print(" Width: \(info.maximumSize.width)")
20-
print(" Height: \(info.maximumSize.height)")
18+
if info.maximumSize.width > 0 || info.maximumSize.height > 0 {
19+
print("Maximum Size:")
20+
print(" Width: \(info.maximumSize.width)")
21+
print(" Height: \(info.maximumSize.height)")
22+
}
2123
print("=======")
2224
} catch {
2325
print("Could not get information for driver \(driver.rawValue)")

0 commit comments

Comments
 (0)