mirror of https://github.com/snes9xgit/snes9x.git
Wayland: Round preferred scale multiplication.
wl_fractional_scale_v1 spec says to round halfway away from zero.
This commit is contained in:
parent
94fbbfe0dd
commit
6555feecda
|
@ -153,7 +153,7 @@ std::tuple<int, int> WaylandSurface::get_size()
|
||||||
return { metrics.width * metrics.scale, metrics.height * metrics.scale };
|
return { metrics.width * metrics.scale, metrics.height * metrics.scale };
|
||||||
}
|
}
|
||||||
|
|
||||||
return { metrics.width * actual_scale, metrics.height * actual_scale };
|
return { round(metrics.width * actual_scale), round(metrics.height * actual_scale) };
|
||||||
}
|
}
|
||||||
|
|
||||||
void WaylandSurface::resize(Metrics m)
|
void WaylandSurface::resize(Metrics m)
|
||||||
|
|
Loading…
Reference in New Issue