fix width/height being used in wrong order

This commit is contained in:
dags 2019-10-09 08:51:23 +01:00 committed by GitHub
parent ee304c720a
commit dce38e4544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -74,12 +74,12 @@ func New(cfg *Config, handler http.Handler) *Window {
hint |= 8
}
w.wnd = UlCreateWindow(mm, w.cfg.Height, w.cfg.Width, false, hint)
w.wnd = UlCreateWindow(mm, w.cfg.Width, w.cfg.Height, false, hint)
UlWindowSetTitle(w.wnd, w.cfg.Title)
UlAppSetWindow(w.app, w.wnd)
w.ov = UlCreateOverlay(w.wnd, w.cfg.Height, w.cfg.Width, w.cfg.X, w.cfg.Y)
w.ov = UlCreateOverlay(w.wnd, w.cfg.Width, w.cfg.Height, w.cfg.X, w.cfg.Y)
UlWindowSetResizeCallback(w.wnd, resizeCallback(w.ov), nil)