Changeset 7ce3cb2 in mainline for uspace/srv/fb/fb.c
- Timestamp:
- 2009-04-02T22:04:29Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b888d5f
- Parents:
- 58d5a7e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fb/fb.c
r58d5a7e7 r7ce3cb2 98 98 /** Backbuffer character cell. */ 99 99 typedef struct { 100 uint 8_t glyph;100 uint32_t glyph; 101 101 uint32_t fg_color; 102 102 uint32_t bg_color; … … 195 195 196 196 static void draw_glyph_aligned(unsigned int x, unsigned int y, bool cursor, 197 uint8_t *glyphs, uint 8_t glyph, uint32_t fg_color, uint32_t bg_color);197 uint8_t *glyphs, uint32_t glyph, uint32_t fg_color, uint32_t bg_color); 198 198 static void draw_glyph_fallback(unsigned int x, unsigned int y, bool cursor, 199 uint8_t *glyphs, uint 8_t glyph, uint32_t fg_color, uint32_t bg_color);199 uint8_t *glyphs, uint32_t glyph, uint32_t fg_color, uint32_t bg_color); 200 200 201 201 static void draw_vp_glyph(viewport_t *vport, bool cursor, unsigned int col, … … 660 660 */ 661 661 static void draw_glyph_aligned(unsigned int x, unsigned int y, bool cursor, 662 uint8_t *glyphs, uint 8_t glyph, uint32_t fg_color, uint32_t bg_color)662 uint8_t *glyphs, uint32_t glyph, uint32_t fg_color, uint32_t bg_color) 663 663 { 664 664 unsigned int i, yd; … … 667 667 unsigned long mask; 668 668 unsigned int ww, d_add; 669 670 /* Check glyph range. */ 671 if (glyph >= FONT_GLYPHS) 672 return; 669 673 670 674 /* … … 679 683 } 680 684 681 682 685 /* Pointer to the current position in the mask. */ 683 686 maskp = (unsigned long *) &glyphs[GLYPH_POS(glyph, 0, cursor)]; … … 721 724 */ 722 725 void draw_glyph_fallback(unsigned int x, unsigned int y, bool cursor, 723 uint8_t *glyphs, uint 8_t glyph, uint32_t fg_color, uint32_t bg_color)726 uint8_t *glyphs, uint32_t glyph, uint32_t fg_color, uint32_t bg_color) 724 727 { 725 728 unsigned int i, j, yd; … … 728 731 unsigned int d_add; 729 732 uint8_t b; 733 734 /* Check glyph range. */ 735 if (glyph >= FONT_GLYPHS) 736 return; 730 737 731 738 /* Pre-render 1x the foreground and background color pixels. */ … … 780 787 unsigned int y = vport->y + ROW2Y(row); 781 788 782 uint 8_t glyph;789 uint32_t glyph; 783 790 uint32_t fg_color; 784 791 uint32_t bg_color; … … 837 844 * 838 845 */ 839 static void draw_char(viewport_t *vport, uint8_t c, unsigned int col, unsigned int row)846 static void draw_char(viewport_t *vport, wchar_t c, unsigned int col, unsigned int row) 840 847 { 841 848 bb_cell_t *bbp; … … 847 854 848 855 bbp = &vport->backbuf[BB_POS(vport, col, row)]; 849 bbp->glyph = c;856 bbp->glyph = (uint32_t) c; 850 857 bbp->fg_color = vport->attr.fg_color; 851 858 bbp->bg_color = vport->attr.bg_color; … … 890 897 891 898 bbp = &vport->backbuf[BB_POS(vport, col, row)]; 892 uint 8_t glyph = bbp->glyph;899 uint32_t glyph = bbp->glyph; 893 900 894 901 a = &data[j * w + i].attrs; … … 1511 1518 unsigned int i; 1512 1519 int scroll; 1513 uint 8_t glyph;1520 uint32_t glyph; 1514 1521 unsigned int row, col; 1515 1522
Note:
See TracChangeset
for help on using the changeset viewer.