Ignore:
File:
1 edited

Legend:

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

    r211fd68 r4c6fd56  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * Copyright (c) 2012 Petr Koupy
    44 * All rights reserved.
     
    974974                wparams.placement = ui_wnd_place_top_left;
    975975
     976        /*
     977         * Compute window rectangle such that application area corresponds
     978         * to rect
     979         */
     980        ui_wdecor_rect_from_app(wparams.style, &rect, &wrect);
     981        off = wrect.p0;
     982        gfx_rect_rtranslate(&off, &wrect, &wparams.rect);
     983
     984        term->off = off;
     985
    976986        rc = ui_create(display_spec, &term->ui);
    977987        if (rc != EOK) {
     
    979989                goto error;
    980990        }
    981 
    982         /*
    983          * Compute window rectangle such that application area corresponds
    984          * to rect
    985          */
    986         ui_wdecor_rect_from_app(term->ui, wparams.style, &rect, &wrect);
    987         off = wrect.p0;
    988         gfx_rect_rtranslate(&off, &wrect, &wparams.rect);
    989 
    990         term->off = off;
    991991
    992992        rc = ui_window_create(term->ui, &wparams, &term->window);
Note: See TracChangeset for help on using the changeset viewer.