Pavel 7 лет назад
Родитель
Сommit
9f3804268e
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 0
      window/glfw.go
  2. 1 1
      window/window.go

+ 2 - 0
window/glfw.go

@@ -278,11 +278,13 @@ func (w *glfwWindow) SwapBuffers() {
 
 // Size returns this window size in screen coordinates
 func (w *glfwWindow) Size() (width int, height int) {
+
 	return w.win.GetSize()
 }
 
 // FramebufferSize returns framebuffer size of this window
 func (w *glfwWindow) FramebufferSize() (width int, height int) {
+
 	return w.win.GetFramebufferSize()
 }
 

+ 1 - 1
window/window.go

@@ -31,7 +31,7 @@ type IWindow interface {
 	SetPos(xpos, ypos int)
 	SetTitle(title string)
 	SetStandardCursor(cursor StandardCursor)
-	SetInputMode(InputMode, int)
+	SetInputMode(mode InputMode, state int)
 	SetCursorPos(xpos, ypos float64)
 	ShouldClose() bool
 	SetShouldClose(bool)