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

tetris: fix &Foo instead of *Foo warnings.

This commit is contained in:
Delyan Angelov
2019-09-03 09:04:11 +03:00
committed by Alexander Medvednikov
parent 83d724fb70
commit ecb661f719
5 changed files with 13 additions and 13 deletions

View File

@@ -102,7 +102,7 @@ pub fn window_hint(key, val int) {
C.glfwWindowHint(key, val)
}
pub fn create_window(c WinCfg) *Window {
pub fn create_window(c WinCfg) &Window {
if c.borderless {
window_hint(C.GLFW_RESIZABLE, 0)
window_hint(C.GLFW_DECORATED, 0)
@@ -227,7 +227,7 @@ struct C.GLFWvidmode {
height int
}
pub fn C.glfwGetVideoMode() *C.GLFWvidmode
pub fn C.glfwGetVideoMode() &C.GLFWvidmode
pub fn get_monitor_size() Size {
//# GLFWvidmode* mode = glfwGetVideoMode(glfwGetPrimaryMonitor());