From bd390665592fa81185e8384ce5bd417244a04f1c Mon Sep 17 00:00:00 2001 From: Steam Powered Taco Date: Sat, 5 Oct 2024 13:34:38 -0600 Subject: [PATCH] Fixes lint issues --- internal/driver/glfw/window_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/driver/glfw/window_windows.go b/internal/driver/glfw/window_windows.go index 445b2c5fdc..8a1de2640d 100644 --- a/internal/driver/glfw/window_windows.go +++ b/internal/driver/glfw/window_windows.go @@ -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)