Changeset 2c12135 in mainline for uspace/app


Ignore:
Timestamp:
2026-02-18T09:13:26Z (4 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
26edcd6
Parents:
a4e4e29
git-author:
Jiri Svoboda <jiri@…> (2026-02-17 21:13:24)
git-committer:
Jiri Svoboda <jiri@…> (2026-02-18 09:13:26)
Message:

GFXDemo resize in console UI, fix UI resize / UI window resize in console.

File:
1 edited

Legend:

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

    ra4e4e29 r2c12135  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2026 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    6161};
    6262
     63static void uiwnd_resize_event(ui_window_t *, void *);
    6364static void uiwnd_close_event(ui_window_t *, void *);
    6465static void uiwnd_kbd_event(ui_window_t *, void *, kbd_event_t *);
    6566
    6667static ui_window_cb_t ui_window_cb = {
     68        .resize = uiwnd_resize_event,
    6769        .close = uiwnd_close_event,
    6870        .kbd = uiwnd_kbd_event
     
    11691171
    11701172        /* Do not decorate the window in fullscreen mode */
    1171         if (ui_is_fullscreen(ui))
     1173        if (ui_is_fullscreen(ui)) {
    11721174                params.style &= ~ui_wds_decorated;
     1175                params.placement = ui_wnd_place_full_screen;
     1176        }
    11731177
    11741178        /*
     
    13281332        (void)arg;
    13291333        demo_kbd_event(event);
     1334}
     1335
     1336static void uiwnd_resize_event(ui_window_t *window, void *arg)
     1337{
     1338        gfx_rect_t rect;
     1339        gfx_coord2_t dims;
     1340
     1341        ui_window_get_app_rect(window, &rect);
     1342        gfx_rect_dims(&rect, &dims);
     1343        scr_width = dims.x;
     1344        scr_height = dims.y;
    13301345}
    13311346
Note: See TracChangeset for help on using the changeset viewer.