Changeset 4f64b7b8 in mainline


Ignore:
Timestamp:
2020-11-21T20:15:32Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8ddf7a
Parents:
0d6d527
Message:

GFX demo needs to quit sooner

It should not take too much time between a close request and
the application terminating, it does not look good.

File:
1 edited

Legend:

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

    r0d6d527 r4f64b7b8  
    120120        errno_t rc;
    121121
     122        if (quit)
     123                return EOK;
     124
    122125        rc = clear_scr(gc, w, h);
    123126        if (rc != EOK)
     
    275278        gfx_rect_t srect;
    276279        errno_t rc;
     280
     281        if (quit)
     282                return EOK;
    277283
    278284        rc = clear_scr(gc, w, h);
     
    309315
    310316                        if (quit)
    311                                 break;
     317                                goto out;
    312318                }
    313319        }
    314320
     321out:
    315322        gfx_bitmap_destroy(bitmap);
    316323
     
    334341        gfx_coord2_t offs;
    335342        errno_t rc;
     343
     344        if (quit)
     345                return EOK;
    336346
    337347        rc = clear_scr(gc, w, h);
     
    390400        gfx_coord2_t offs;
    391401        errno_t rc;
     402
     403        if (quit)
     404                return EOK;
    392405
    393406        rc = clear_scr(gc, w, h);
     
    452465        int i;
    453466        errno_t rc;
     467
     468        if (quit)
     469                return EOK;
    454470
    455471        rc = gfx_typeface_open(gc, "/data/font/helena.tpf", &tface);
Note: See TracChangeset for help on using the changeset viewer.