Changeset 4ca363f in mainline


Ignore:
Timestamp:
2006-02-26T12:49:05Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d74d724
Parents:
4767721
Message:

Change putpixel1() to look better.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/src/fb/fb.c

    r4767721 r4ca363f  
    127127}
    128128
    129 /** Put pixel - 8-bit depth (3:3:2) */
     129/** Put pixel - 8-bit depth (3:2:3) */
    130130static void putpixel_1byte(int x,int y,int color)
    131131{
    132132        int compcolor;
    133133
    134         /* 3-bit, 3-bits, 2-bits */
     134        /* 3-bit, 2-bits, 3-bits */
    135135        compcolor = RED(color,3) << 5 \
    136                 | GREEN(color,3) << 2 \
    137                 | BLUE(color,2);
     136                | GREEN(color,2) << 3 \
     137                | BLUE(color,3);
    138138        fbaddress[POINTPOS(x,y)] = compcolor;
    139139}
     
    147147        color = fbaddress[POINTPOS(x,y)];
    148148        red = (color >> 5) & 0x7;
    149         green = (color >> 5) & 0x7;
     149        green = (color >> 3) & 0x7;
    150150        blue = color & 0x3;
    151151        return (red << (16+5)) | (green << (8+5)) | blue << 6;
Note: See TracChangeset for help on using the changeset viewer.