ui: rename Config.Val to Pixels

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-10 13:59:09 +02:00
parent e3ba84758c
commit 320579814f
8 changed files with 22 additions and 23 deletions
+2 -2
View File
@@ -216,8 +216,8 @@ func Main() {
}
cfg := getConfig()
opts := singleWindow.opts
w := cfg.Val(opts.Width)
h := cfg.Val(opts.Height)
w := cfg.Pixels(opts.Width)
h := cfg.Pixels(opts.Height)
title := C.CString(opts.Title)
defer C.free(unsafe.Pointer(title))
C.gio_main(view, title, C.CGFloat(w), C.CGFloat(h))