Changeset 3434233 in mainline for uspace/srv/hid/display/test/seat.c


Ignore:
Timestamp:
2019-12-16T10:14:12Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
65160d7
Parents:
fdc8e40
git-author:
Jiri Svoboda <jiri@…> (2019-12-15 10:13:47)
git-committer:
Jiri Svoboda <jiri@…> (2019-12-16 10:14:12)
Message:

Store dimensions in display server window structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/test/seat.c

    rfdc8e40 r3434233  
    2727 */
    2828
     29#include <disp_srv.h>
    2930#include <errno.h>
    3031#include <pcut/pcut.h>
     
    6263        ds_seat_t *seat;
    6364        ds_window_t *wnd;
     65        display_wnd_params_t params;
    6466        errno_t rc;
    6567
     
    7375        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    7476
    75         rc = ds_window_create(client, &wnd);
     77        display_wnd_params_init(&params);
     78        params.rect.p0.x = params.rect.p0.y = 0;
     79        params.rect.p1.x = params.rect.p1.y = 1;
     80
     81        rc = ds_window_create(client, &params, &wnd);
    7682        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    7783
     
    9399        ds_window_t *w0;
    94100        ds_window_t *w1;
     101        display_wnd_params_t params;
    95102        errno_t rc;
    96103
     
    104111        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    105112
    106         rc = ds_window_create(client, &w1);
     113        display_wnd_params_init(&params);
     114        params.rect.p0.x = params.rect.p0.y = 0;
     115        params.rect.p1.x = params.rect.p1.y = 1;
     116
     117        rc = ds_window_create(client, &params, &w1);
    107118        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    108119
    109         rc = ds_window_create(client, &w0);
     120        rc = ds_window_create(client, &params, &w0);
    110121        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    111122
Note: See TracChangeset for help on using the changeset viewer.