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 ecb1d4c commit 655dd81Copy full SHA for 655dd81
src/sdl2_ttf.zig
@@ -11,7 +11,7 @@ pub fn init() !void {
11
extern fn TTF_Init() c_int;
12
13
pub fn wasInit() bool {
14
- return TTF_WasInit() == 1;
+ return TTF_WasInit() == sdl.True;
15
}
16
extern fn TTF_WasInit() c_int;
17
@@ -21,8 +21,8 @@ pub fn quit() void {
21
extern fn TTF_Quit() void;
22
23
pub const Font = opaque {
24
- pub fn open(file: [:0]const u8, ptsize: i32) !*Font {
25
- return TTF_OpenFont(file, ptsize) orelse sdl.makeError();
+ pub fn open(file: [:0]const u8, ptsize: u16) !*Font {
+ return TTF_OpenFont(file, @intCast(ptsize)) orelse sdl.makeError();
26
27
extern fn TTF_OpenFont(file: [*c]const u8, ptsize: c_int) ?*Font;
28
0 commit comments