Changeset 0b63dc2 in mainline for uspace/app/gfxdemo/gfxdemo.c


Ignore:
Timestamp:
2019-12-07T20:26:28Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
df1a019
Parents:
71cbe5c
Message:

Switch compositor → display server

Convert KFB from visualizer to display device interface. Add ability
of display device implementor to provide client with arg2, arg3 needed
to connect to GC.

File:
1 edited

Legend:

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

    r71cbe5c r0b63dc2  
    502502        errno_t rc;
    503503
    504         if (argc < 2) {
    505                 print_syntax();
    506                 return 1;
    507         }
    508 
    509         if (str_cmp(argv[1], "console") == 0) {
     504        if (argc < 2 || str_cmp(argv[1], "display") == 0) {
     505                rc = demo_display();
     506                if (rc != EOK)
     507                        return 1;
     508        } else if (str_cmp(argv[1], "console") == 0) {
    510509                rc = demo_console();
    511510                if (rc != EOK)
     
    513512        } else if (str_cmp(argv[1], "canvas") == 0) {
    514513                rc = demo_canvas();
    515                 if (rc != EOK)
    516                         return 1;
    517         } else if (str_cmp(argv[1], "display") == 0) {
    518                 rc = demo_display();
    519514                if (rc != EOK)
    520515                        return 1;
Note: See TracChangeset for help on using the changeset viewer.