The Fucking Go Language
This commit is contained in:
parent
d533a5ed7c
commit
de20f82fb4
@ -8,7 +8,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
func resolution() (w int, h int) {
|
func Resolution() (w int, h int) {
|
||||||
resFile, err := os.Open("/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)
|
||||||
@ -24,7 +24,6 @@ func resolution() (w int, h int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var devfb *os.File
|
var devfb *os.File
|
||||||
const Width, Height int = resolution()
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
var err error
|
var err error
|
||||||
|
Loading…
Reference in New Issue
Block a user