Changeset 62018a0 in mainline for uspace/srv/hid/display/seat.c


Ignore:
Timestamp:
2020-06-24T12:32:04Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8630748
Parents:
2fc1e6d
git-author:
Jiri Svoboda <jiri@…> (2020-06-23 18:31:47)
git-committer:
Jiri Svoboda <jiri@…> (2020-06-24 12:32:04)
Message:

Properly clip cursor when repainting a part of the display

Not doing so was causing excessively large update rectangles, increasing
CPU usage and display artifacts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/seat.c

    r2fc1e6d r62018a0  
    420420
    421421        cursor = ds_seat_get_cursor(seat);
    422         (void) rect; // XXX ds_cursor_paint should accept a clipping rectangle
    423         return ds_cursor_paint(cursor, &seat->pntpos);
     422        return ds_cursor_paint(cursor, &seat->pntpos, rect);
    424423}
    425424
Note: See TracChangeset for help on using the changeset viewer.