Skip to content

Commit 980f656

Browse files
authored
Merge pull request #8 from alexanderuv/master
Fixed problem with UInt32 initializer
2 parents d3c3451 + 980c6a9 commit 980f656

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/SDL/PixelFormat.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,18 @@ internal extension SDLPixelFormat.Format {
7373
public extension SDLPixelFormat.Format {
7474

7575
/// SDL_PIXELFORMAT_INDEX1LSB
76-
static let index1LSB = SDLPixelFormat.Format(rawValue: UInt32(SDL_PIXELFORMAT_INDEX1LSB))
76+
static let index1LSB = SDLPixelFormat.Format(rawValue: UInt32(SDL_PIXELFORMAT_INDEX1LSB.rawValue))
7777

7878
/// SDL_PIXELFORMAT_INDEX1MSB
79-
static let index1MSB = SDLPixelFormat.Format(rawValue: UInt32(SDL_PIXELFORMAT_INDEX1MSB))
79+
static let index1MSB = SDLPixelFormat.Format(rawValue: UInt32(SDL_PIXELFORMAT_INDEX1MSB.rawValue))
8080

8181
#if os(macOS)
8282
/// SDL_PIXELFORMAT_ARGB32
83-
static let argb32 = SDLPixelFormat.Format(rawValue: UInt32(SDL_PIXELFORMAT_ARGB32))
83+
static let argb32 = SDLPixelFormat.Format(rawValue: UInt32(SDL_PIXELFORMAT_ARGB32.rawValue))
8484
#endif
8585

8686
/// SDL_PIXELFORMAT_ARGB8888
87-
static let argb8888 = SDLPixelFormat.Format(rawValue: UInt32(SDL_PIXELFORMAT_ARGB8888))
87+
static let argb8888 = SDLPixelFormat.Format(rawValue: UInt32(SDL_PIXELFORMAT_ARGB8888.rawValue))
8888
}
8989

9090
// MARK: - ExpressibleByIntegerLiteral

0 commit comments

Comments
 (0)