Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/fidget/opengl/base.nim
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ proc glGetInteger*(what: GLenum): int =
glGetIntegerv(what, val.addr)
return val.int

proc onResize(handle: staticglfw.Window, w, h: int32) {.cdecl.} =
proc onResize(handle: staticglfw.Window, w, h: cint) {.cdecl.} =
updateWindowSize()
updateLoop(poll = false)

Expand Down Expand Up @@ -269,7 +269,7 @@ proc onSetKey(
buttonRelease[key] = true
buttonDown[key] = setKey

proc onScroll(window: staticglfw.Window, xoffset, yoffset: float64) {.cdecl.} =
proc onScroll(window: staticglfw.Window, xoffset, yoffset: cdouble) {.cdecl.} =
requestedFrame = true
if keyboard.focusNode != nil:
textBox.scrollBy(-yoffset * 50)
Expand Down
Loading