Changeset c0efb2e in mainline


Ignore:
Timestamp:
2023-10-10T18:47:35Z (13 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
788c76e3
Parents:
082feff
Message:

GFX should detect screen size in console mode

File:
1 edited

Legend:

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

    r082feff rc0efb2e  
    10711071        console_gc_t *cgc = NULL;
    10721072        gfx_context_t *gc;
     1073        sysarg_t cols, rows;
    10731074        errno_t rc;
    10741075
     
    10771078                return EIO;
    10781079
     1080        rc = console_get_size(con, &cols, &rows);
     1081        if (rc != EOK)
     1082                return rc;
     1083
    10791084        rc = console_gc_create(con, stdout, &cgc);
    10801085        if (rc != EOK)
     
    10831088        gc = console_gc_get_ctx(cgc);
    10841089
    1085         rc = demo_loop(gc, 80, 25);
     1090        rc = demo_loop(gc, cols, rows);
    10861091        if (rc != EOK)
    10871092                return rc;
Note: See TracChangeset for help on using the changeset viewer.