Changeset 95b9963 in mainline
- Timestamp:
- 2009-02-12T20:04:19Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af75db9
- Parents:
- 0f81ceb7
- Location:
- kernel/genarch
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/fb/fb.h
r0f81ceb7 r95b9963 50 50 * relative to "addr". 51 51 */ 52 unsigned int offset; 52 unsigned int offset; 53 53 54 54 /** Screen width in pixels. */ -
kernel/genarch/include/fb/visuals.h
r0f81ceb7 r95b9963 45 45 46 46 #define VISUAL_BGR_0_8_8_8 6 47 #define VISUAL_BGR_8_8_8 7 47 48 48 49 #endif -
kernel/genarch/src/fb/fb.c
r0f81ceb7 r95b9963 121 121 122 122 123 /** RGB 8:8:8 conversion 124 * 125 */ 126 static void rgb_888(void *dst, uint32_t rgb) 127 { 128 ((uint8_t *) dst)[0] = BLUE(rgb, 8); 129 ((uint8_t *) dst)[1] = GREEN(rgb, 8); 130 ((uint8_t *) dst)[2] = RED(rgb, 8); 131 } 132 133 123 134 /** BGR 8:8:8 conversion 124 135 * 125 136 */ 126 static void rgb_888(void *dst, uint32_t rgb) 127 { 128 #if defined(FB_INVERT_ENDIAN) 137 static void bgr_888(void *dst, uint32_t rgb) 138 { 129 139 ((uint8_t *) dst)[0] = RED(rgb, 8); 130 140 ((uint8_t *) dst)[1] = GREEN(rgb, 8); 131 141 ((uint8_t *) dst)[2] = BLUE(rgb, 8); 132 #else133 ((uint8_t *) dst)[0] = BLUE(rgb, 8);134 ((uint8_t *) dst)[1] = GREEN(rgb, 8);135 ((uint8_t *) dst)[2] = RED(rgb, 8);136 #endif137 142 } 138 143 … … 450 455 pixelbytes = 3; 451 456 break; 457 case VISUAL_BGR_8_8_8: 458 rgb_conv = bgr_888; 459 pixelbytes = 3; 460 break; 452 461 case VISUAL_RGB_8_8_8_0: 453 462 rgb_conv = rgb_888;
Note:
See TracChangeset
for help on using the changeset viewer.