should work :)
This commit is contained in:
parent
22d9315fc6
commit
39c3a411ae
@ -1,6 +1,10 @@
|
|||||||
package fb
|
package fb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bufio"
|
||||||
|
"fmt"
|
||||||
|
"image"
|
||||||
|
"image/color"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -10,7 +14,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func resolution() (w int, h int) {
|
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 {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user