From e78b97652b6a29b39d76e0fcbf6e4a700fb83763 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 22 Mar 2020 18:39:17 +0100 Subject: [PATCH] glfw: fix "scale is declared as mutable" --- vlib/glfw/glfw.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/glfw/glfw.v b/vlib/glfw/glfw.v index 7bea08ff99..1e67084e89 100644 --- a/vlib/glfw/glfw.v +++ b/vlib/glfw/glfw.v @@ -147,7 +147,7 @@ pub fn create_window(c WinCfg) &glfw.Window { // println('create window wnd=$cwindow ptr==$c.ptr') C.glfwSetWindowUserPointer(cwindow, c.ptr) - mut scale := 1.0 + scale := 1.0 $if windows { C.glfwGetWindowContentScale(cwindow, &scale, &scale) } @@ -257,7 +257,7 @@ pub fn get_cursor_pos(cwindow voidptr) (f64, f64) { y := f64(0) C.glfwGetCursorPos(cwindow, &x, &y) - mut scale := 1.0 + scale := 1.0 $if windows { C.glfwGetWindowContentScale(cwindow, &scale, &scale) }