mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-05-31 03:44:26 +00:00
[client] wayland: improve fractional scaling
avoids the 24.8 quantisation without introducing floating-point equality/rounding behaviour throughout the Wayland state. Closes #1257
This commit is contained in:
@@ -183,7 +183,7 @@ void waylandCursorFree(void)
|
||||
|
||||
void waylandCursorScaleChange(void)
|
||||
{
|
||||
int newScale = ceil(wl_fixed_to_double(wlWm.scale));
|
||||
int newScale = waylandScaleCeil(wlWm.scale);
|
||||
if (newScale == wlWm.cursorScale)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user