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


Ignore:
Timestamp:
2019-12-16T10:14:12Z (6 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/client.c

    rfdc8e40 r3434233  
    2727 */
    2828
     29#include <disp_srv.h>
    2930#include <errno.h>
    3031#include <pcut/pcut.h>
     
    8384        ds_window_t *w1;
    8485        ds_window_t *wnd;
     86        display_wnd_params_t params;
    8587        errno_t rc;
    8688
     
    9193        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    9294
    93         rc = ds_window_create(client, &w0);
    94         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    95 
    96         rc = ds_window_create(client, &w1);
     95        display_wnd_params_init(&params);
     96        params.rect.p0.x = params.rect.p0.y = 0;
     97        params.rect.p1.x = params.rect.p1.y = 1;
     98
     99        rc = ds_window_create(client, &params, &w0);
     100        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     101
     102        rc = ds_window_create(client, &params, &w1);
    97103        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    98104
     
    123129        ds_window_t *w1;
    124130        ds_window_t *wnd;
     131        display_wnd_params_t params;
    125132        errno_t rc;
    126133
     
    131138        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    132139
    133         rc = ds_window_create(client, &w0);
    134         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    135 
    136         rc = ds_window_create(client, &w1);
     140        display_wnd_params_init(&params);
     141        params.rect.p0.x = params.rect.p0.y = 0;
     142        params.rect.p1.x = params.rect.p1.y = 1;
     143
     144        rc = ds_window_create(client, &params, &w0);
     145        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     146
     147        rc = ds_window_create(client, &params, &w1);
    137148        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    138149
     
    158169        ds_client_t *client;
    159170        ds_window_t *wnd;
     171        display_wnd_params_t params;
    160172        kbd_event_t event;
    161173        ds_window_t *rwindow;
     
    170182        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    171183
    172         rc = ds_window_create(client, &wnd);
     184        display_wnd_params_init(&params);
     185        params.rect.p0.x = params.rect.p0.y = 0;
     186        params.rect.p1.x = params.rect.p1.y = 1;
     187
     188        rc = ds_window_create(client, &params, &wnd);
    173189        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    174190
     
    213229        ds_client_t *client;
    214230        ds_window_t *wnd;
     231        display_wnd_params_t params;
    215232        errno_t rc;
    216233
     
    221238        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    222239
    223         rc = ds_window_create(client, &wnd);
     240        display_wnd_params_init(&params);
     241        params.rect.p0.x = params.rect.p0.y = 0;
     242        params.rect.p1.x = params.rect.p1.y = 1;
     243
     244        rc = ds_window_create(client, &params, &wnd);
    224245        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    225246
Note: See TracChangeset for help on using the changeset viewer.