Changeset 4d9c807 in mainline for uspace/app/terminal/terminal.c


Ignore:
Timestamp:
2019-12-13T19:02:10Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fdc8e40
Parents:
4fbdc3d
Message:

Communicate window dimensions to display server

File:
1 edited

Legend:

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

    r4fbdc3d r4d9c807  
    715715        terminal_t *term;
    716716        gfx_bitmap_params_t params;
     717        display_wnd_params_t wparams;
    717718        errno_t rc;
    718719
     
    755756        }
    756757
    757         rc = display_window_create(display, &terminal_wnd_cb, (void *) term,
    758             &term->window);
     758        display_wnd_params_init(&wparams);
     759        wparams.rect.p0.x = 0;
     760        wparams.rect.p0.y = 0;
     761        wparams.rect.p1.x = width;
     762        wparams.rect.p1.y = height;
     763
     764        rc = display_window_create(display, &wparams, &terminal_wnd_cb,
     765            (void *) term, &term->window);
    759766        if (rc != EOK) {
    760767                printf("Error creating window.\n");
Note: See TracChangeset for help on using the changeset viewer.