Changeset 171f9a1 in mainline for uspace/srv/fb/fb.c


Ignore:
Timestamp:
2009-04-03T20:39:33Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cb01e1e
Parents:
7a2c479
Message:

Character encoding/decoding un uspace. Partially fix klog application.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fb/fb.c

    r7a2c479 r171f9a1  
    6969#define DEFAULT_FGCOLOR  0x000000
    7070
     71#define GLYPH_UNAVAIL   '?'
     72
    7173#define MAX_ANIM_LEN     8
    7274#define MAX_ANIMATIONS   4
     
    7981/** Function to draw a glyph. */
    8082typedef void (*dg_t)(unsigned int x, unsigned int y, bool cursor,
    81     uint8_t *glyphs, uint8_t glyph, uint32_t fg_color, uint32_t bg_color);
     83    uint8_t *glyphs, uint32_t glyph, uint32_t fg_color, uint32_t bg_color);
    8284
    8385struct {
     
    670672        /* Check glyph range. */
    671673        if (glyph >= FONT_GLYPHS)
    672                 return;
     674                glyph = GLYPH_UNAVAIL;
    673675
    674676        /*
     
    734736        /* Check glyph range. */
    735737        if (glyph >= FONT_GLYPHS)
    736                 return;
     738                glyph = GLYPH_UNAVAIL;
    737739
    738740        /* Pre-render 1x the foreground and background color pixels. */
Note: See TracChangeset for help on using the changeset viewer.