Changeset c4a53280 in mainline for uspace/app/taskbar/types/wndlist.h


Ignore:
Timestamp:
2022-12-01T14:39:56Z (17 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
795c6f7
Parents:
68d68e9
git-author:
Jiri Svoboda <jiri@…> (2022-11-30 18:39:42)
git-committer:
Jiri Svoboda <jiri@…> (2022-12-01 14:39:56)
Message:

Optimize redrawing of window buttons

We cache the button pich inside wndlist_t. We only repaint the entire
window list if the pitch changes. Otherwise we just (un)paint the
affected buttons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskbar/types/wndlist.h

    r68d68e9 rc4a53280  
    5757        /** Window button */
    5858        ui_pbutton_t *button;
     59        /** Window button rectangle */
     60        gfx_rect_t rect;
    5961} wndlist_entry_t;
    6062
     
    7678        list_t entries;
    7779
     80        /** Current button pitch */
     81        gfx_coord_t pitch;
     82
    7883        /** Window management service */
    7984        wndmgt_t *wndmgt;
Note: See TracChangeset for help on using the changeset viewer.