0.7.1 compatibility fix.

This commit is contained in:
KikooDX 2021-02-02 18:38:47 +01:00
parent 989502edf9
commit 935623ce77
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,8 @@ pub fn main() void {
// Set mouse scaling.
ray.SetMouseScale(1.0 / @intToFloat(f32, scale), 1.0 / @intToFloat(f32, scale));
mouse.pos.x = @intCast(u16, ray.GetMouseX() + camera.x);
mouse.pos.y = @intCast(u16, ray.GetMouseY() + camera.y);
mouse.pos.x = @intCast(Vec2.int_type, ray.GetMouseX()) + camera.x;
mouse.pos.y = @intCast(Vec2.int_type, ray.GetMouseY()) + camera.y;
}
const left_click: bool = ray.IsMouseButtonPressed(conf.mouse_left_btn);