Changeset dc0f6e4c in mainline for uspace/lib/ui/src/window.c


Ignore:
Timestamp:
2023-10-24T16:50:46Z (17 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Parents:
29ed06d
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 20:38:41)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-24 16:50:46)
Message:

Deduplicate identical enums for window resizing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/window.c

    r29ed06d rdc0f6e4c  
    8686static void wd_close(ui_wdecor_t *, void *);
    8787static void wd_move(ui_wdecor_t *, void *, gfx_coord2_t *, sysarg_t);
    88 static void wd_resize(ui_wdecor_t *, void *, ui_wdecor_rsztype_t,
     88static void wd_resize(ui_wdecor_t *, void *, display_wnd_rsztype_t,
    8989    gfx_coord2_t *, sysarg_t);
    9090static void wd_set_cursor(ui_wdecor_t *, void *, ui_stock_cursor_t);
     
    11911191 */
    11921192static void wd_resize(ui_wdecor_t *wdecor, void *arg,
    1193     ui_wdecor_rsztype_t rsztype, gfx_coord2_t *pos, sysarg_t pos_id)
     1193    display_wnd_rsztype_t rsztype, gfx_coord2_t *pos, sysarg_t pos_id)
    11941194{
    11951195        ui_window_t *window = (ui_window_t *) arg;
    11961196
    11971197        if (window->dwindow != NULL) {
    1198                 (void) display_window_resize_req(window->dwindow,
    1199                     (display_wnd_rsztype_t) rsztype, // Same constants in the enums
     1198                (void) display_window_resize_req(window->dwindow, rsztype,
    12001199                    pos, pos_id);
    12011200        }
Note: See TracChangeset for help on using the changeset viewer.