ui/app: replace WindowOptions with WindowOption

Thanks to Larry Clapp for noticing the opportunity for improvement.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-08-21 10:27:48 +02:00
parent e140f2a1c0
commit bff8b64e5a
8 changed files with 58 additions and 28 deletions
+2 -2
View File
@@ -161,7 +161,7 @@ func main() {
<-mainDone
}
func createWindow(window *Window, opts *WindowOptions) error {
func createWindow(window *Window, opts *windowOptions) error {
onceMu.Lock()
defer onceMu.Unlock()
if len(winMap) > 0 {
@@ -191,7 +191,7 @@ func createWindow(window *Window, opts *WindowOptions) error {
return <-cerr
}
func createNativeWindow(opts *WindowOptions) (*window, error) {
func createNativeWindow(opts *windowOptions) (*window, error) {
setProcessDPIAware()
screenDC, err := getDC(0)
if err != nil {