Ignore:
Timestamp:
2019-02-01T22:32:38Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
00b7fc8
Parents:
1a37496
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-01 21:22:39)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-01 22:32:38)
Message:

Avoid directly using .head/.next/.prev of list_t/link_t

Use existing constructs from <adt/list.h> instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/compositor/compositor.c

    r1a37496 rf959a20f  
    427427
    428428                        /* For each window. */
    429                         for (link_t *link = window_list.head.prev;
    430                             link != &window_list.head; link = link->prev) {
    431 
     429                        list_foreach_rev(window_list, link, window_t, win) {
    432430                                /*
    433431                                 * Determine what part of the window intersects with the
    434432                                 * updated area of the current viewport.
    435433                                 */
    436                                 window_t *win = list_get_instance(link, window_t, link);
    437                                 if (!win->surface) {
     434                                if (!win->surface)
    438435                                        continue;
    439                                 }
     436
    440437                                sysarg_t x_dmg_win, y_dmg_win, w_dmg_win, h_dmg_win;
    441438                                surface_get_resolution(win->surface, &w_dmg_win, &h_dmg_win);
Note: See TracChangeset for help on using the changeset viewer.