Changeset bd2fab5 in mainline for uspace/app/gfxdemo/gfxdemo.c
- Timestamp:
- 2023-10-10T12:56:43Z (14 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af967ef9
- Parents:
- 983052c
- git-author:
- Jiri Svoboda <jiri@…> (2023-10-09 18:56:27)
- git-committer:
- Jiri Svoboda <jiri@…> (2023-10-10 12:56:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/gfxdemo/gfxdemo.c
r983052c rbd2fab5 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 1041 1041 errno_t rc; 1042 1042 1043 printf("Init console..\n");1044 1043 con = console_init(stdin, stdout); 1045 1044 if (con == NULL) 1046 1045 return EIO; 1047 1046 1048 printf("Create console GC\n");1049 1047 rc = console_gc_create(con, stdout, &cgc); 1050 1048 if (rc != EOK) … … 1076 1074 errno_t rc; 1077 1075 1078 printf("Init UI..\n");1079 1080 1076 rc = ui_create(display_spec, &ui); 1081 1077 if (rc != EOK) { … … 1141 1137 errno_t rc; 1142 1138 1143 printf("Init display..\n");1144 1145 1139 rc = display_open(display_svc, &display); 1146 1140 if (rc != EOK) { … … 1186 1180 static void wnd_close_event(void *arg) 1187 1181 { 1188 printf("Close event\n");1189 1182 quit = true; 1190 1183 } … … 1192 1185 static void wnd_kbd_event(void *arg, kbd_event_t *event) 1193 1186 { 1194 printf("Keyboard event type=%d key=%d\n", event->type, event->key);1195 1187 if (event->type == KEY_PRESS) 1196 1188 quit = true; … … 1199 1191 static void uiwnd_close_event(ui_window_t *window, void *arg) 1200 1192 { 1201 printf("Close event\n");1202 1193 quit = true; 1203 1194 } … … 1205 1196 static void uiwnd_kbd_event(ui_window_t *window, void *arg, kbd_event_t *event) 1206 1197 { 1207 printf("Keyboard event type=%d key=%d\n", event->type, event->key);1208 1198 if (event->type == KEY_PRESS) 1209 1199 quit = true;
Note:
See TracChangeset
for help on using the changeset viewer.