mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
ui/app: apply monitorScale to browser DPI
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -348,7 +348,7 @@ func (w *window) config() (int, int, float32, ui.Config) {
|
||||
w.cnv.Set("width", iw)
|
||||
w.cnv.Set("height", ih)
|
||||
}
|
||||
const ppdp = 96 * inchPrDp
|
||||
const ppdp = 96 * inchPrDp * monitorScale
|
||||
return iw, ih, float32(scale), ui.Config{
|
||||
PxPerDp: ppdp * float32(scale),
|
||||
PxPerSp: ppdp * float32(scale),
|
||||
|
||||
Reference in New Issue
Block a user