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