1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

remove old types and

This commit is contained in:
Alexander Medvednikov
2019-06-25 22:19:17 +02:00
parent f26e65a943
commit f3f24b25bb
6 changed files with 13 additions and 20 deletions

View File

@@ -136,7 +136,7 @@ fn init() {
}
// fn mouse_move(w * GLFWwindow, x, y double) {
fn mouse_move(w voidptr, x, y double) {
fn mouse_move(w voidptr, x, y f64) {
// #printf("%f : %f => %d \n", x,y);
}
@@ -244,7 +244,7 @@ fn (w mut Window) onchar(cb voidptr) {
C.glfwSetCharModsCallback(w.data, cb)
}
fn get_time() double {
fn get_time() f64 {
return C.glfwGetTime()
}
@@ -266,8 +266,8 @@ fn (w &Window) set_clipboard_text(s string) {
}
fn (w &Window) get_cursor_pos() Pos {
x := double(0)
y := double(0)
x := f64(0)
y := f64(0)
C.glfwGetCursorPos(w.data, &x, &y)
return Pos {
x: int(x)