The Fucking Go Language

This commit is contained in:
XoxJlopeZi4BB 2025-01-26 07:20:50 +04:00
parent d533a5ed7c
commit de20f82fb4

View File

@ -8,7 +8,7 @@ import (
"os" "os"
) )
func resolution() (w int, h int) { func Resolution() (w int, h int) {
resFile, err := os.Open("/sys/class/graphics/fb0/virtual_size") resFile, err := os.Open("/sys/class/graphics/fb0/virtual_size")
if err != nil { if err != nil {
panic(err) panic(err)
@ -24,7 +24,6 @@ func resolution() (w int, h int) {
} }
var devfb *os.File var devfb *os.File
const Width, Height int = resolution()
func init() { func init() {
var err error var err error