MirrorBar Plus 10: keep the real screen scale for the bar width fix (main.go)

This commit is contained in:
2026-11-12 23:54:43 +00:00
parent 6ac9164755
commit 93f6b94d98
+2
View File
@@ -331,6 +331,7 @@ var (
hoverApp = -1
trackingMouse bool
scale float64 = 1
realScale float64 = 1 // scale as the screen really is; scale itself is doubled while the icon layers are drawn
barHeight int32
fontTime uintptr
fontDate uintptr
@@ -1309,6 +1310,7 @@ func main() {
if dpi > 0 {
scale = float64(dpi) / 96.0
}
realScale = scale
barHeight = px(36)
fontTime = makeFont(px(13), 400)
fontDate = makeFont(px(11), 400)