mach: Cast window positions (i64) to i32 on window resize
This commit is contained in:
parent
7a9b3de37a
commit
dd0a6064fb
1 changed files with 1 additions and 1 deletions
|
|
@ -359,7 +359,7 @@ pub const Platform = struct {
|
|||
try platform.window.setMonitor(monitor, 0, 0, video_mode.getWidth(), video_mode.getHeight(), null);
|
||||
} else {
|
||||
const position = platform.last_position;
|
||||
try platform.window.setMonitor(null, position.x, position.y, options.width, options.height, null);
|
||||
try platform.window.setMonitor(null, @intCast(i32, position.x), @intCast(i32, position.y), options.width, options.height, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue