Ignore:
File:
1 edited

Legend:

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

    rd8ddf7a 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.