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

Changeset 6d172f6 in mainline


Ignore:
Timestamp:
2021-10-04T12:23:54Z (3 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
3d10a2f
Parents:
9bf5da6f
git-author:
Jiri Svoboda <jiri@…> (2021-10-03 17:23:43)
git-committer:
Jiri Svoboda <jiri@…> (2021-10-04 12:23:54)
Message:

Fix window destruction with dummy output

In unit tests when we tried to destroy a window ui_window_destroy()
would try to repaint the UI (because it figures out the UI is
full-screen since there is no display service) and tried to do it
using console GC (which is NULL).

File:
1 edited

Legend:

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

    r9bf5da6f r6d172f6  
    311311        gfx_color_t *color = NULL;
    312312
     313        /* In case of null output */
     314        if (ui->cgc == NULL)
     315                return EOK;
     316
    313317        gc = console_gc_get_ctx(ui->cgc);
    314318
Note: See TracChangeset for help on using the changeset viewer.