i swear it should work

This commit is contained in:
potassium 2025-01-26 06:07:51 +03:00
parent 39c3a411ae
commit 930ed283a2

View File

@ -9,7 +9,7 @@ import (
)
var (
devfb *os.File
devfb *os.File
Width, Height int
)
@ -30,7 +30,8 @@ func resolution() (w int, h int) {
func init() {
Width, Height = resolution()
devfb, err := os.OpenFile("/dev/fb", os.O_WRONLY, os.ModePerm)
var err error
devfb, err = os.OpenFile("/dev/fb", os.O_WRONLY, os.ModePerm)
if err != nil {
panic(err)
}