Changeset a29bd22 in mainline for genarch/src/fb/fb.c


Ignore:
Timestamp:
2006-02-26T13:33:08Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4a2b52f
Parents:
d74d724
Message:

Fixed getpixel_1byte to work with 3:2:3 color scheme.

File:
1 edited

Legend:

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

    rd74d724 ra29bd22  
    147147        color = fbaddress[POINTPOS(x,y)];
    148148        red = (color >> 5) & 0x7;
    149         green = (color >> 3) & 0x7;
    150         blue = color & 0x3;
    151         return (red << (16+5)) | (green << (8+5)) | blue << 6;
     149        green = (color >> 3) & 0x3;
     150        blue = color & 0x7;
     151        return (red << (16+5)) | (green << (8+6)) | blue << 5;
    152152}
    153153
Note: See TracChangeset for help on using the changeset viewer.