Changeset 925fdd7 in mainline for uspace/srv/fb/fb.c
- Timestamp:
- 2008-12-10T21:41:22Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bb74e8ab
- Parents:
- 8af9950
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fb/fb.c
r8af9950 r925fdd7 243 243 rgb_byte8(void *dst, int rgb) 244 244 { 245 *(uint8_t *)dst = RED(rgb, 3) << 5 | GREEN(rgb, 2) << 3 | BLUE(rgb, 3); 245 *(uint8_t *)dst = 255 - (RED(rgb, 3) << 5 | GREEN(rgb, 2) << 3 | 246 BLUE(rgb, 3)); 246 247 } 247 248 … … 250 251 byte8_rgb(void *src) 251 252 { 252 int color = *(uint8_t *)src;253 int color = 255 - (*(uint8_t *)src); 253 254 return (((color >> 5) & 0x7) << (16 + 5)) | 254 255 (((color >> 3) & 0x3) << (8 + 6)) | ((color & 0x7) << 5); … … 566 567 } 567 568 568 screen.fbaddress = (unsigned char *) (((uintptr_t) addr) + offset);569 screen.fbaddress = (unsigned char *) (((uintptr_t) addr)); 569 570 screen.xres = xres; 570 571 screen.yres = yres;
Note:
See TracChangeset
for help on using the changeset viewer.