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