Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 232bf2c in mainline


Ignore:
Timestamp:
2021-11-12T20:41:01Z (3 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
a5d20a3
Parents:
0802ab6
Message:

Fix UI demo crashing

We don't get away with incorrectly passing DISPLAY_DEFAULT instead of
UI_DISPLAY_DEFAULT as a display spec to ui_create() anymore.

File:
1 edited

Legend:

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

    r0802ab6 r232bf2c  
    11291129        errno_t rc;
    11301130        const char *display_svc = DISPLAY_DEFAULT;
     1131        const char *ui_display_spec = UI_DISPLAY_DEFAULT;
    11311132        int i;
    11321133
     
    11411142                        }
    11421143
    1143                         display_svc = argv[i++];
     1144                        display_svc = ui_display_spec = argv[i++];
    11441145                } else {
    11451146                        printf("Invalid option '%s'.\n", argv[i]);
     
    11581159                        return 1;
    11591160        } else if (str_cmp(argv[i], "ui") == 0) {
    1160                 rc = demo_ui(display_svc);
     1161                rc = demo_ui(ui_display_spec);
    11611162                if (rc != EOK)
    11621163                        return 1;
Note: See TracChangeset for help on using the changeset viewer.