Changeset b433f68 in mainline for uspace/app/gfxdemo


Ignore:
Timestamp:
2021-02-26T16:23:36Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77ffa01
Parents:
fe40b67
Message:

Puttext needs to know the color of the text being printed

So far we were using the GC's current drawing color. But unless there
was a way to read it, we could not render text-mode text in the correct
color.

File:
1 edited

Legend:

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

    rfe40b67 rb433f68  
    556556                goto error;
    557557
    558         rc = gfx_set_color(gc, color);
    559         if (rc != EOK)
    560                 goto error;
    561 
    562558        gfx_text_fmt_init(&fmt);
     559        fmt.color = color;
    563560
    564561        pos.x = rect.p0.x;
     
    640637                        goto error;
    641638
    642                 rc = gfx_set_color(gc, color);
    643                 if (rc != EOK)
    644                         goto error;
     639                fmt.color = color;
    645640
    646641                pos.x = w / 20;
Note: See TracChangeset for help on using the changeset viewer.