mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-02 01:46:01 +01:00
fix rounding exceeding max in single-line errors
This commit is contained in:
parent
eb7927d278
commit
ef90a7ad13
1 changed files with 1 additions and 1 deletions
|
@ -48,9 +48,9 @@ void CHyprError::createQueued() {
|
||||||
|
|
||||||
const double X = PAD;
|
const double X = PAD;
|
||||||
const double Y = PAD;
|
const double Y = PAD;
|
||||||
const double RADIUS = PAD;
|
|
||||||
const double WIDTH = PMONITOR->vecPixelSize.x - PAD * 2;
|
const double WIDTH = PMONITOR->vecPixelSize.x - PAD * 2;
|
||||||
const double HEIGHT = (FONTSIZE + 2 * (FONTSIZE / 10.0)) * LINECOUNT + 3;
|
const double HEIGHT = (FONTSIZE + 2 * (FONTSIZE / 10.0)) * LINECOUNT + 3;
|
||||||
|
const double RADIUS = PAD > HEIGHT / 2 ? HEIGHT / 2 - 1 : PAD;
|
||||||
|
|
||||||
m_bDamageBox = {(int)PMONITOR->vecPosition.x, (int)PMONITOR->vecPosition.y, (int)PMONITOR->vecPixelSize.x, (int)HEIGHT + (int)PAD * 2};
|
m_bDamageBox = {(int)PMONITOR->vecPosition.x, (int)PMONITOR->vecPosition.y, (int)PMONITOR->vecPixelSize.x, (int)HEIGHT + (int)PAD * 2};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue