Changeset bc52b5b in mainline for uspace/lib/gfx/include


Ignore:
Timestamp:
2021-08-15T10:02:32Z (4 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/gfx/include/gfx/color.h

    rde0c55a rbc52b5b  
    11/*
    2  * Copyright (c) 2019 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4343extern errno_t gfx_color_new_rgb_i16(uint16_t, uint16_t,
    4444    uint16_t, gfx_color_t **);
     45extern errno_t gfx_color_new_ega(uint8_t, gfx_color_t **);
    4546extern void gfx_color_delete(gfx_color_t *);
    4647extern void gfx_color_get_rgb_i16(gfx_color_t *, uint16_t *, uint16_t *,
    4748    uint16_t *);
     49extern void gfx_color_get_ega(gfx_color_t *, uint8_t *);
    4850
    4951#endif
Note: See TracChangeset for help on using the changeset viewer.