Changeset 4ca363f in mainline for genarch/src/fb/fb.c
- Timestamp:
- 2006-02-26T12:49:05Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d74d724
- Parents:
- 4767721
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/fb/fb.c
r4767721 r4ca363f 127 127 } 128 128 129 /** Put pixel - 8-bit depth (3: 3:2) */129 /** Put pixel - 8-bit depth (3:2:3) */ 130 130 static void putpixel_1byte(int x,int y,int color) 131 131 { 132 132 int compcolor; 133 133 134 /* 3-bit, 3-bits, 2-bits */134 /* 3-bit, 2-bits, 3-bits */ 135 135 compcolor = RED(color,3) << 5 \ 136 | GREEN(color, 3) << 2\137 | BLUE(color, 2);136 | GREEN(color,2) << 3 \ 137 | BLUE(color,3); 138 138 fbaddress[POINTPOS(x,y)] = compcolor; 139 139 } … … 147 147 color = fbaddress[POINTPOS(x,y)]; 148 148 red = (color >> 5) & 0x7; 149 green = (color >> 5) & 0x7;149 green = (color >> 3) & 0x7; 150 150 blue = color & 0x3; 151 151 return (red << (16+5)) | (green << (8+5)) | blue << 6;
Note:
See TracChangeset
for help on using the changeset viewer.