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:
committed by
Alexander Medvednikov
parent
83d724fb70
commit
ecb661f719
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user