Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c45d8696 in mainline


Ignore:
Timestamp:
2020-06-15T10:11:35Z (3 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
3e640e5
Parents:
afcf704
git-author:
Jiri Svoboda <jiri@…> (2020-06-14 22:31:24)
git-committer:
Jiri Svoboda <jiri@…> (2020-06-15 10:11:35)
Message:

Window surface needs to be created with shared flag

So that surface_destroy() uses as_area_destroy() to free the pixels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/window.c

    rafcf704 rc45d8696  
    471471
    472472        /* Allocate new surface. */
    473         surface_t *new_surface = surface_create(width, height, alloc.pixels, 0);
     473        surface_t *new_surface = surface_create(width, height, alloc.pixels,
     474            SURFACE_FLAG_SHARED);
    474475        if (!new_surface) {
    475476                gfx_bitmap_destroy(new_bitmap);
Note: See TracChangeset for help on using the changeset viewer.