소스 검색

Adaptation to modification of 'github.com/go-gl/glfw' API

leonsal 8 년 전
부모
커밋
5c03c222f9
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      window/glfw.go

+ 6 - 6
window/glfw.go

@@ -156,12 +156,12 @@ func newGLFW(width, height int, title string, full bool) (*GLFW, error) {
 	})
 
 	// Preallocate standard cursors
-	w.arrowCursor = glfw.CreateStandardCursor(int(glfw.ArrowCursor))
-	w.ibeamCursor = glfw.CreateStandardCursor(int(glfw.IBeamCursor))
-	w.crosshairCursor = glfw.CreateStandardCursor(int(glfw.CrosshairCursor))
-	w.handCursor = glfw.CreateStandardCursor(int(glfw.HandCursor))
-	w.hresizeCursor = glfw.CreateStandardCursor(int(glfw.HResizeCursor))
-	w.vresizeCursor = glfw.CreateStandardCursor(int(glfw.VResizeCursor))
+	w.arrowCursor = glfw.CreateStandardCursor(glfw.ArrowCursor)
+	w.ibeamCursor = glfw.CreateStandardCursor(glfw.IBeamCursor)
+	w.crosshairCursor = glfw.CreateStandardCursor(glfw.CrosshairCursor)
+	w.handCursor = glfw.CreateStandardCursor(glfw.HandCursor)
+	w.hresizeCursor = glfw.CreateStandardCursor(glfw.HResizeCursor)
+	w.vresizeCursor = glfw.CreateStandardCursor(glfw.VResizeCursor)
 
 	return w, nil
 }