Skip to content

Commit

Permalink
chore: merge branch 'v2-exp' into v2-renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Nov 6, 2024
2 parents c66c815 + 65514b9 commit 7b01292
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func mouseEvent(p uint32, e xwindows.MouseEventRecord) (ev Msg) {
Mod: mod,
}

wheelDirection := int16(highWord(uint32(e.ButtonState))) //nolint:gosec
wheelDirection := int16(highWord(e.ButtonState)) //nolint:gosec
switch e.EventFlags {
case xwindows.CLICK, xwindows.DOUBLE_CLICK:
m.Button, isRelease = mouseEventButton(p, e.ButtonState)
Expand Down Expand Up @@ -203,7 +203,7 @@ func peekConsoleInput(console windows.Handle, inputRecords []xwindows.InputRecor

var read uint32

err := xwindows.PeekConsoleInput(console, &inputRecords[0], uint32(len(inputRecords)), &read)
err := xwindows.PeekConsoleInput(console, &inputRecords[0], uint32(len(inputRecords)), &read) //nolint:gosec

return read, err
}
Expand Down

0 comments on commit 7b01292

Please # to comment.