Changeset ccb0cbc in mainline for uspace/fb/fb.c
- Timestamp:
- 2006-11-22T13:45:05Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eb353b3
- Parents:
- 2bc137c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/fb/fb.c
r2bc137c2 rccb0cbc 160 160 } 161 161 162 static void bgr_byte0888(void *dst, int rgb) 163 { 164 *((uint32_t *) dst) = BLUE(rgb, 8) << 16 | GREEN(rgb, 8) << 8 | RED(rgb, 8); 165 } 166 167 static int byte0888_bgr(void *src) 168 { 169 int color = *(uint32_t *)(src); 170 return ((color & 0xff) << 16) | (((color >> 8) & 0xff) << 8) | ((color >> 16) & 0xff); 171 } 172 162 173 static void rgb_byte888(void *dst, int rgb) 163 174 { … … 508 519 screen.rgb2scr = rgb_byte0888; 509 520 screen.scr2rgb = byte0888_rgb; 521 screen.pixelbytes = 4; 522 break; 523 case VISUAL_BGR_0_8_8_8: 524 screen.rgb2scr = bgr_byte0888; 525 screen.scr2rgb = byte0888_bgr; 510 526 screen.pixelbytes = 4; 511 527 break;
Note:
See TracChangeset
for help on using the changeset viewer.