Changeset 3434233 in mainline for uspace/srv/hid/display/test/window.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/window.c

    rfdc8e40 r3434233  
    2727 */
    2828
     29#include <disp_srv.h>
    2930#include <errno.h>
    3031#include <pcut/pcut.h>
     
    4647        ds_client_t *client;
    4748        ds_window_t *wnd;
     49        display_wnd_params_t params;
    4850        gfx_context_t *gc;
    4951        errno_t rc;
     
    5557        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    5658
    57         rc = ds_window_create(client, &wnd);
     59        display_wnd_params_init(&params);
     60        params.rect.p0.x = params.rect.p0.y = 0;
     61        params.rect.p1.x = params.rect.p1.y = 1;
     62
     63        rc = ds_window_create(client, &params, &wnd);
    5864        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    5965
Note: See TracChangeset for help on using the changeset viewer.