Subversion Repositories HelenOS

Rev

Rev 4647 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4647 Rev 4651
Line 248... Line 248...
248
{
248
{
249
    *((uint32_t *) dst)
249
    *((uint32_t *) dst)
250
        = (BLUE(rgb, 8) << 16) | (GREEN(rgb, 8) << 8) | RED(rgb, 8);
250
        = (BLUE(rgb, 8) << 16) | (GREEN(rgb, 8) << 8) | RED(rgb, 8);
251
}
251
}
252
 
252
 
-
 
253
static void rgb_8880(void *dst, uint32_t rgb)
-
 
254
{
-
 
255
    *((uint32_t *) dst)
-
 
256
        = (RED(rgb, 8) << 24) | (GREEN(rgb, 8) << 16) | BLUE(rgb, 8) << 8;
-
 
257
}
-
 
258
 
-
 
259
static void mask_8880(void *dst, bool mask)
-
 
260
{
-
 
261
    *((uint32_t *) dst) = (mask ? 0xffffff00 : 0);
-
 
262
}
253
 
263
 
254
/** RGB 8:8:8 conversion
264
/** RGB 8:8:8 conversion
255
 *
265
 *
256
 */
266
 */
257
static void rgb_888(void *dst, uint32_t rgb)
267
static void rgb_888(void *dst, uint32_t rgb)
Line 648... Line 658...
648
        screen.rgb_conv = bgr_888;
658
        screen.rgb_conv = bgr_888;
649
        screen.mask_conv = mask_888;
659
        screen.mask_conv = mask_888;
650
        screen.pixelbytes = 3;
660
        screen.pixelbytes = 3;
651
        break;
661
        break;
652
    case VISUAL_RGB_8_8_8_0:
662
    case VISUAL_RGB_8_8_8_0:
653
        screen.rgb_conv = rgb_888;
663
        screen.rgb_conv = rgb_8880;
654
        screen.mask_conv = mask_888;
664
        screen.mask_conv = mask_8880;
655
        screen.pixelbytes = 4;
665
        screen.pixelbytes = 4;
656
        break;
666
        break;
657
    case VISUAL_RGB_0_8_8_8:
667
    case VISUAL_RGB_0_8_8_8:
658
        screen.rgb_conv = rgb_0888;
668
        screen.rgb_conv = rgb_0888;
659
        screen.mask_conv = mask_0888;
669
        screen.mask_conv = mask_0888;