mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
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:
@@ -370,10 +370,9 @@ func (w *window) config() (int, int, float32, config) {
|
|||||||
w.cnv.Set("width", iw)
|
w.cnv.Set("width", iw)
|
||||||
w.cnv.Set("height", ih)
|
w.cnv.Set("height", ih)
|
||||||
}
|
}
|
||||||
const ppdp = 96 * inchPrDp
|
|
||||||
return iw, ih, float32(scale), config{
|
return iw, ih, float32(scale), config{
|
||||||
pxPerDp: ppdp * float32(scale),
|
pxPerDp: float32(scale),
|
||||||
pxPerSp: ppdp * float32(scale),
|
pxPerSp: float32(scale),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user