i swear it should work
This commit is contained in:
parent
39c3a411ae
commit
930ed283a2
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user