app/internal/window: make 1 dp = 1 px in WebAssembly

Updates gio#53

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-11-04 19:07:37 +01:00
parent 513b19b2c5
commit 03eeba7974
+2 -3
View File
@@ -370,10 +370,9 @@ func (w *window) config() (int, int, float32, config) {
w.cnv.Set("width", iw)
w.cnv.Set("height", ih)
}
const ppdp = 96 * inchPrDp
return iw, ih, float32(scale), config{
pxPerDp: ppdp * float32(scale),
pxPerSp: ppdp * float32(scale),
pxPerDp: float32(scale),
pxPerSp: float32(scale),
}
}