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


Ignore:
Timestamp:
2021-02-16T18:12:05Z (3 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/image.c

    ref734b7 r2ab8ab3  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3737#include <gfx/bitmap.h>
    3838#include <gfx/context.h>
     39#include <gfx/render.h>
    3940#include <gfx/text.h>
    4041#include <stdlib.h>
     
    177178         */
    178179        gfx_rect_rtranslate(&offs, &irect, &srect);
    179         return gfx_bitmap_render(image->bitmap, &srect, &offs);
    180 
     180        rc = gfx_bitmap_render(image->bitmap, &srect, &offs);
     181        if (rc != EOK)
     182                return rc;
     183
     184        return gfx_update(image->res->gc);
    181185}
    182186
Note: See TracChangeset for help on using the changeset viewer.