mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 23:46:33 -05:00
cursor-renderer-native: Floor the cursor position instead of rounding
Which eliminates the 1px jitter that was visible when dragging windows, and eliminates the flickering that was visible when pushing the cursor against the right/bottom edges of the screen.
This commit is contained in:
parent
bdf8d0f1c3
commit
8d514095cb
@ -366,8 +366,8 @@ update_monitor_crtc_cursor (MetaMonitor *monitor,
|
||||
scaled_crtc_rect.origin.y) * scale;
|
||||
drmModeMoveCursor (kms_fd,
|
||||
crtc->crtc_id,
|
||||
roundf (crtc_cursor_x),
|
||||
roundf (crtc_cursor_y));
|
||||
floorf (crtc_cursor_x),
|
||||
floorf (crtc_cursor_y));
|
||||
|
||||
data->out_painted = data->out_painted || TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user