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