We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28d8cc commit 4360a20Copy full SHA for 4360a20
Sources/SDLDemo/main.swift
@@ -15,9 +15,11 @@ if renderDrivers.isEmpty == false {
15
info.options.forEach { print(" \($0)") }
16
print("Formats:")
17
info.formats.forEach { print(" \($0)") }
18
- print("Maximum Size:")
19
- print(" Width: \(info.maximumSize.width)")
20
- print(" Height: \(info.maximumSize.height)")
+ if info.maximumSize.width > 0 || info.maximumSize.height > 0 {
+ print("Maximum Size:")
+ print(" Width: \(info.maximumSize.width)")
21
+ print(" Height: \(info.maximumSize.height)")
22
+ }
23
print("=======")
24
} catch {
25
print("Could not get information for driver \(driver.rawValue)")
0 commit comments