A map wants every pixel it can have, and a size chosen here cannot know what screen it will land on. The window now opens zoomed to the display's visible frame instead of at a fixed 1440x920. Not fullscreen: the menu bar and dock stay, and the window is still a window. The declared size is what it returns to when unzoomed.
- commit
- 0584c9c3d53c11fab2775c5a448049104a5a1514
- parent
- 30e2373275c75490ba628f5b680dcc0420d49399
- author
- Dami <dami.etoile@gmail.com>
| M | main.go | 15 | ++++++++++----- |
@@ -43,11 +43,16 @@ func main() {
4343 },4444 },4545 &options.App{46- Title: "Atlas — Game Map Explorer",47- Width: 1440,48- Height: 920,49- MinWidth: 900,50- MinHeight: 600,46+ Title: "Atlas — Game Map Explorer",47+ // A map wants every pixel it can have, so the window opens filling48+ // the screen it lands on rather than at a size chosen here. Not49+ // fullscreen: the menu bar and dock stay, and the window is still a50+ // window. Width and Height are what it returns to when unzoomed.51+ WindowStartState: options.Maximised,52+ Width: 1440,53+ Height: 920,54+ MinWidth: 900,55+ MinHeight: 600,5156 },5257 )5358 if err != nil {