Changeset 4c2339b in mainline


Ignore:
Timestamp:
2024-09-13T14:43:37Z (3 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
3d588be
Parents:
899bdfd
Message:

Bright should not be applied to background color.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/terminal/terminal.c

    r899bdfd r4c2339b  
    222222
    223223                int bright = (index.attr & CATTR_BRIGHT) ? COLOR_BRIGHT : 0;
    224                 pixel_t bgcolor = _basic_colors[index.bgcolor | bright];
     224                pixel_t bgcolor = _basic_colors[index.bgcolor];
    225225                pixel_t fgcolor = _basic_colors[index.fgcolor | bright];
    226226                cell.bgcolor = termui_color_from_pixel(bgcolor);
     
    574574
    575575        termui_cell_t cellstyle = { };
    576         cellstyle.bgcolor = termui_color_from_pixel(_basic_colors[bgcolor | bright]);
     576        cellstyle.bgcolor = termui_color_from_pixel(_basic_colors[bgcolor]);
    577577        cellstyle.fgcolor = termui_color_from_pixel(_basic_colors[fgcolor | bright]);
    578578
Note: See TracChangeset for help on using the changeset viewer.