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


Ignore:
Timestamp:
2019-12-13T19:02:10Z (4 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/gfxdemo/gfxdemo.c

    r4fbdc3d r4d9c807  
    456456        display_t *display = NULL;
    457457        gfx_context_t *gc;
     458        display_wnd_params_t params;
    458459        display_window_t *window = NULL;
    459460        errno_t rc;
     
    467468        }
    468469
    469         rc = display_window_create(display, &wnd_cb, NULL, &window);
     470        display_wnd_params_init(&params);
     471        params.rect.p0.x = 0;
     472        params.rect.p0.y = 0;
     473        params.rect.p1.x = 400;
     474        params.rect.p1.y = 300;
     475
     476        rc = display_window_create(display, &params, &wnd_cb, NULL, &window);
    470477        if (rc != EOK) {
    471478                printf("Error creating window.\n");
Note: See TracChangeset for help on using the changeset viewer.