im dumb as hell bruh
This commit is contained in:
parent
04884bd8e3
commit
cf672824a6
@ -11,8 +11,8 @@ func main () {
|
|||||||
|
|
||||||
func run () {
|
func run () {
|
||||||
window, _ := tomo.NewWindow(480, 360)
|
window, _ := tomo.NewWindow(480, 360)
|
||||||
window.SetTitle("Draw Test")
|
|
||||||
window.Adopt(testing.NewArtist())
|
window.Adopt(testing.NewArtist())
|
||||||
window.OnClose(tomo.Stop)
|
window.OnClose(tomo.Stop)
|
||||||
|
window.Show()
|
||||||
ez.Prof()
|
ez.Prof()
|
||||||
}
|
}
|
||||||
|
1
tomo.go
1
tomo.go
@ -16,6 +16,7 @@ var backend Backend
|
|||||||
// the backend experiences a fatal error.
|
// the backend experiences a fatal error.
|
||||||
func Run (callback func ()) (err error) {
|
func Run (callback func ()) (err error) {
|
||||||
backend, err = instantiateBackend()
|
backend, err = instantiateBackend()
|
||||||
|
if err != nil { return }
|
||||||
config := parseConfig()
|
config := parseConfig()
|
||||||
backend.SetConfig(config)
|
backend.SetConfig(config)
|
||||||
backend.SetTheme(parseTheme(config.ThemePath()))
|
backend.SetTheme(parseTheme(config.ThemePath()))
|
||||||
|
Reference in New Issue
Block a user