update to latest zig
This commit is contained in:
parent
09ef4b6106
commit
0e9e56a8f1
@ -24,10 +24,7 @@ pub fn main() !void {
|
|||||||
defer c.SDL_DestroyRenderer(renderer);
|
defer c.SDL_DestroyRenderer(renderer);
|
||||||
|
|
||||||
const zig_bmp = @embedFile("zig.bmp");
|
const zig_bmp = @embedFile("zig.bmp");
|
||||||
const rw = c.SDL_RWFromConstMem(
|
const rw = c.SDL_RWFromConstMem(zig_bmp, zig_bmp.len) orelse {
|
||||||
@ptrCast(*const c_void, &zig_bmp[0]),
|
|
||||||
@intCast(c_int, zig_bmp.len),
|
|
||||||
) orelse {
|
|
||||||
c.SDL_Log("Unable to get RWFromConstMem: %s", c.SDL_GetError());
|
c.SDL_Log("Unable to get RWFromConstMem: %s", c.SDL_GetError());
|
||||||
return error.SDLInitializationFailed;
|
return error.SDLInitializationFailed;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user