Changeset c37c24c in mainline for uspace/app/terminal/terminal.c


Ignore:
Timestamp:
2024-04-07T09:52:47Z (14 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
e55d2c1
Parents:
6c1e7c0 (diff), 34aad53d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'topic/packet-capture' into topic/packet-capture-choose-nic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/terminal/terminal.c

    r6c1e7c0 rc37c24c  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * Copyright (c) 2012 Petr Koupy
    44 * All rights reserved.
     
    974974                wparams.placement = ui_wnd_place_top_left;
    975975
     976        rc = ui_create(display_spec, &term->ui);
     977        if (rc != EOK) {
     978                printf("Error creating UI on %s.\n", display_spec);
     979                goto error;
     980        }
     981
    976982        /*
    977983         * Compute window rectangle such that application area corresponds
    978984         * to rect
    979985         */
    980         ui_wdecor_rect_from_app(wparams.style, &rect, &wrect);
     986        ui_wdecor_rect_from_app(term->ui, wparams.style, &rect, &wrect);
    981987        off = wrect.p0;
    982988        gfx_rect_rtranslate(&off, &wrect, &wparams.rect);
    983989
    984990        term->off = off;
    985 
    986         rc = ui_create(display_spec, &term->ui);
    987         if (rc != EOK) {
    988                 printf("Error creating UI on %s.\n", display_spec);
    989                 goto error;
    990         }
    991991
    992992        rc = ui_window_create(term->ui, &wparams, &term->window);
Note: See TracChangeset for help on using the changeset viewer.