Changeset 2ab8ab3 in mainline for uspace/lib/ui/src/dummygc.c


Ignore:
Timestamp:
2021-02-16T18:12:05Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
68a552f
Parents:
ef734b7
Message:

Client-side UI rendering

It is possible to turn on and off and if turned on, one can also
enable or disable window double buffering (currently both options
are build-time).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/dummygc.c

    ref734b7 r2ab8ab3  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    199199{
    200200        dummygc_bitmap_t *tbm = (dummygc_bitmap_t *)bm;
     201
    201202        tbm->dgc->bm_rendered = true;
    202         tbm->dgc->bm_srect = *srect;
    203         tbm->dgc->bm_offs = *offs;
     203
     204        tbm->dgc->bm_srect.p0.x = 0;
     205        tbm->dgc->bm_srect.p0.y = 0;
     206        tbm->dgc->bm_srect.p1.x = 0;
     207        tbm->dgc->bm_srect.p1.y = 0;
     208
     209        tbm->dgc->bm_offs.x = 0;
     210        tbm->dgc->bm_offs.y = 0;
     211
     212        if (srect != NULL)
     213                tbm->dgc->bm_srect = *srect;
     214
     215        if (offs != NULL)
     216                tbm->dgc->bm_offs = *offs;
     217
    204218        return EOK;
    205219}
Note: See TracChangeset for help on using the changeset viewer.