internal/uidriver/glfw: Refactoring

This commit is contained in:
Hajime Hoshi 2021-09-23 02:03:37 +09:00
parent f00bdc99f7
commit 422387c7cd

View File

@ -75,7 +75,7 @@ func videoModeScaleUncached(m *glfw.Monitor, monitorX, monitorY int) float64 {
}
defer xconn.Close()
if err = randr.Init(xconn); err != nil {
if err := randr.Init(xconn); err != nil {
// No RANDR extension? No problem.
return 1
}