Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d74a2b8 in mainline


Ignore:
Timestamp:
2020-07-05T10:05:32Z (5 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
277168d, 762f989
Parents:
fc4abca
Message:

Need to lock display while updating window

This was causing flicker issues because updating window raced with other
rendering (e.g. painting mouse pointer or previewing window move).

File:
1 edited

Legend:

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

    rfc4abca rd74a2b8  
    798798
    799799        /* Repaint the corresponding part of the display */
     800
    800801        gfx_rect_translate(&wnd->dpos, rect, &drect);
     802        ds_display_lock(wnd->display);
    801803        (void) ds_display_paint(wnd->display, &drect);
     804        ds_display_unlock(wnd->display);
    802805}
    803806
Note: See TracChangeset for help on using the changeset viewer.