mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-08 10:55:35 +00:00
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:
@@ -198,17 +198,22 @@ func createNativeWindow(opts *WindowOptions) (*window, error) {
|
||||
scale = s
|
||||
}
|
||||
}
|
||||
ppdp := ppmm * mmPrDp * monitorScale
|
||||
ppdp := ppmm * mmPrDp
|
||||
ppsp := ppdp * fontScale
|
||||
ppdp *= monitorScale
|
||||
if ppdp < minDensity {
|
||||
ppdp = minDensity
|
||||
}
|
||||
if ppsp < minDensity {
|
||||
ppsp = minDensity
|
||||
}
|
||||
|
||||
w := &window{
|
||||
disp: conn.disp,
|
||||
scale: scale,
|
||||
newScale: scale != 1,
|
||||
ppdp: ppdp,
|
||||
ppsp: ppdp * fontScale,
|
||||
ppsp: ppsp,
|
||||
notRead: pipe[0],
|
||||
notWrite: pipe[1],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user