Skip to content

Commit

Permalink
Fixes lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
steampoweredtaco committed Oct 5, 2024
1 parent a902d27 commit 9f029e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/driver/glfw/window_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func (w *window) setDarkMode() {
dwm := syscall.NewLazyDLL("dwmapi.dll")
setAtt := dwm.NewProc("DwmSetWindowAttribute")
ret, _, err := setAtt.Call(uintptr(unsafe.Pointer(hwnd)), // window handle
20, // DWMWA_USE_IMMERSIVE_DARK_MODE
20, // DWMWA_USE_IMMERSIVE_DARK_MODE
uintptr(unsafe.Pointer(&winBool)), // on or off
4) // sizeof(bool for windows)
4) // sizeof(bool for windows)

if ret != 0 && ret != 0x80070057 { // err is always non-nil, we check return value (except erroneous code)
fyne.LogError("Failed to set dark mode", err)
Expand Down

0 comments on commit 9f029e9

Please sign in to comment.