diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-01-22 16:48:45 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-01-22 16:48:45 +0100 |
| commit | ef90a7ad134ab57f734773c45af254b7bc876594 (patch) | |
| tree | 95f52fd81e999b57b0662fe1826ff8edaaed5586 /src/hyprerror/HyprError.cpp | |
| parent | eb7927d278405569858c106568f5b0856eca701a (diff) | |
fix rounding exceeding max in single-line errors
Diffstat (limited to 'src/hyprerror/HyprError.cpp')
| -rw-r--r-- | src/hyprerror/HyprError.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp index 5ee1d919..e7a06b1a 100644 --- a/src/hyprerror/HyprError.cpp +++ b/src/hyprerror/HyprError.cpp @@ -48,9 +48,9 @@ void CHyprError::createQueued() { const double X = PAD; const double Y = PAD; - const double RADIUS = PAD; const double WIDTH = PMONITOR->vecPixelSize.x - PAD * 2; 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}; |
