Changeset bc52b5b in mainline for uspace/lib/ui/src/pbutton.c


Ignore:
Timestamp:
2021-08-15T10:02:32Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
99589a9
Parents:
de0c55a
Message:

Allow the use of EGA attributes/24-bit characters alongside RGB

In a big hack (since we cannot have different pixel formats yet) we
use a pixel format that allows both 24-bit RGB (without character)
or 24-bit character with 8-bit attributes. Thus in GFX we cannot
currently have characters with any RGB color, but we can set
foreground and background individually (and it even works in EGA mode).

File:
1 edited

Legend:

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

    rde0c55a rbc52b5b  
    366366        rect.p1.y = pbutton->rect.p0.y + 1;
    367367
    368         rc = gfx_set_color(pbutton->res->gc, pbutton->res->btn_highlight_color);
     368        rc = gfx_set_color(pbutton->res->gc, pbutton->res->btn_face_color);
    369369        if (rc != EOK)
    370370                goto error;
Note: See TracChangeset for help on using the changeset viewer.