ui/app: tweak monitor scale

Don't apply monitor scale to wayland font sizes, since it detects
the user scale itself.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-11 14:55:51 +02:00
parent 478d56102a
commit f4461721e3
4 changed files with 12 additions and 7 deletions
+3 -3
View File
@@ -202,10 +202,10 @@ func onFocusChange(env *C.JNIEnv, class C.jclass, view C.jlong, focus C.jboolean
func onWindowInsets(env *C.JNIEnv, class C.jclass, view C.jlong, top, right, bottom, left C.jint) {
w := views[view]
w.insets = Insets{
Top: ui.Px(float32(top)),
Right: ui.Px(float32(right)),
Top: ui.Px(float32(top)),
Right: ui.Px(float32(right)),
Bottom: ui.Px(float32(bottom)),
Left: ui.Px(float32(left)),
Left: ui.Px(float32(left)),
}
if w.stage >= StageRunning {
w.draw(true)