Changeset 2c12135 in mainline for uspace/app
- Timestamp:
- 2026-02-18T09:13:26Z (4 weeks ago)
- 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)
- File:
-
- 1 edited
-
uspace/app/gfxdemo/gfxdemo.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/gfxdemo/gfxdemo.c
ra4e4e29 r2c12135 1 1 /* 2 * Copyright (c) 202 5Jiri Svoboda2 * Copyright (c) 2026 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 61 61 }; 62 62 63 static void uiwnd_resize_event(ui_window_t *, void *); 63 64 static void uiwnd_close_event(ui_window_t *, void *); 64 65 static void uiwnd_kbd_event(ui_window_t *, void *, kbd_event_t *); 65 66 66 67 static ui_window_cb_t ui_window_cb = { 68 .resize = uiwnd_resize_event, 67 69 .close = uiwnd_close_event, 68 70 .kbd = uiwnd_kbd_event … … 1169 1171 1170 1172 /* Do not decorate the window in fullscreen mode */ 1171 if (ui_is_fullscreen(ui)) 1173 if (ui_is_fullscreen(ui)) { 1172 1174 params.style &= ~ui_wds_decorated; 1175 params.placement = ui_wnd_place_full_screen; 1176 } 1173 1177 1174 1178 /* … … 1328 1332 (void)arg; 1329 1333 demo_kbd_event(event); 1334 } 1335 1336 static 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; 1330 1345 } 1331 1346
Note:
See TracChangeset
for help on using the changeset viewer.
