fix off by two on the string breaking in notifications (strings were able to overshoot by one pixel)
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 1m58s
/ Build BaseBand Loader (push) Successful in 1m14s

This commit is contained in:
Daniella / Tove 2024-06-18 18:52:17 +02:00
parent 2985d65193
commit a9168696fb
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -65,7 +65,7 @@ public class NotificationRender {
return;
String s = notif.text;
s = TextSplitter.breakText(s, xSize - padding * 2);
s = TextSplitter.breakText(s, xSize - 2 - padding * 2);
int ys = TextSplitter.getStringHeight(s) + 1 + padding * 2;
ys = notif.opacity(ys, 1);