From 39c3a411aee60da3387b8a2b00bc429ef7f3ef1d Mon Sep 17 00:00:00 2001 From: potassium Date: Sun, 26 Jan 2025 05:51:04 +0300 Subject: [PATCH] should work :) --- fb/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fb/main.go b/fb/main.go index 3838192..7cd29d0 100644 --- a/fb/main.go +++ b/fb/main.go @@ -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) }