should work :)

This commit is contained in:
potassium 2025-01-26 05:51:04 +03:00
parent 22d9315fc6
commit 39c3a411ae

View File

@ -1,6 +1,10 @@
package fb
import (
"bufio"
"fmt"
"image"
"image/color"
"os"
)
@ -10,7 +14,7 @@ var (
)
func resolution() (w int, h int) {
resFile, err := os.File("/sys/class/graphics/fb0/virtual_size")
resFile, err := os.Open("/sys/class/graphics/fb0/virtual_size")
if err != nil {
panic(err)
}