mirror of https://git.sr.ht/~kikoodx/kble
0.7.1 compatibility fix.
This commit is contained in:
parent
989502edf9
commit
935623ce77
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue