From de20f82fb420b1b9a493443d5bd947c07689cf5d Mon Sep 17 00:00:00 2001 From: XoxJlopeZi4BB Date: Sun, 26 Jan 2025 07:20:50 +0400 Subject: [PATCH] The Fucking Go Language --- fb/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fb/main.go b/fb/main.go index 806c4dd..3248dff 100644 --- a/fb/main.go +++ b/fb/main.go @@ -8,7 +8,7 @@ import ( "os" ) -func resolution() (w int, h int) { +func Resolution() (w int, h int) { resFile, err := os.Open("/sys/class/graphics/fb0/virtual_size") if err != nil { panic(err) @@ -24,7 +24,6 @@ func resolution() (w int, h int) { } var devfb *os.File -const Width, Height int = resolution() func init() { var err error