Fixed titled config typo and gave option functionality

This commit is contained in:
Chris 2019-10-08 23:02:46 -04:00
parent e2343ebc27
commit 2b226f4413
2 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@ func main() {
Title: "Hello, World!",
Height: 500,
Width: 500,
Tilted: true,
Titled: true,
Resizeable: true,
}

View File

@ -37,7 +37,7 @@ type Config struct {
Resizeable bool
Borderless bool
Tilted bool
Titled bool
Maximizable bool
}
@ -64,8 +64,9 @@ func New(cfg *Config, handler http.Handler) *Window {
hint |= 1
}
if cfg.Tilted {
if !cfg.Titled {
hint |= 2
w.cfg.Title = ""
}
if cfg.Maximizable {