mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 04:45:58 +01:00
renderer: fix rounding of the size of fractionally scaled monitors (#5748)
This commit is contained in:
parent
0652a20bd3
commit
faa9017043
1 changed files with 1 additions and 1 deletions
|
@ -2260,7 +2260,7 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
|
|||
|
||||
int x, y;
|
||||
wlr_output_transformed_resolution(pMonitor->output, &x, &y);
|
||||
pMonitor->vecSize = (Vector2D(x, y) / pMonitor->scale).floor();
|
||||
pMonitor->vecSize = (Vector2D(x, y) / pMonitor->scale).round();
|
||||
pMonitor->vecTransformedSize = Vector2D(x, y);
|
||||
|
||||
if (pMonitor->createdByUser) {
|
||||
|
|
Loading…
Reference in a new issue