Skip to content

Commit a0b1192

Browse files
committed
Merge branch 'master' of https://github.com/sunlubo/SwiftSDL2
2 parents 3230b4d + 6f0cdf1 commit a0b1192

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ let renderer = Renderer(window: window)
3333
let texture = Texture(renderer: renderer, format: .rgba8888, access: .target, width: 640, height: 480)
3434

3535
while true {
36-
var event = Event()
37-
Events.pollEvent(&event)
38-
if event.type == .quit {
36+
if let event = Events.poll(), event.type == .quit {
3937
break
4038
}
4139

0 commit comments

Comments
 (0)