Subversion Repositories HelenOS

Rev

Rev 4338 | Rev 4341 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4338 Rev 4339
Line 454... Line 454...
454
    case VISUAL_BGR_0_8_8_8:
454
    case VISUAL_BGR_0_8_8_8:
455
        rgb_conv = bgr_0888;
455
        rgb_conv = bgr_0888;
456
        pixelbytes = 4;
456
        pixelbytes = 4;
457
        break;
457
        break;
458
    default:
458
    default:
459
        panic("Unsupported visual.\n");
459
        panic("Unsupported visual.");
460
    }
460
    }
461
   
461
   
462
    xres = props->x;
462
    xres = props->x;
463
    yres = props->y;
463
    yres = props->y;
464
    scanline = props->scan;
464
    scanline = props->scan;
Line 486... Line 486...
486
    unsigned int bbsize = cols * rows;
486
    unsigned int bbsize = cols * rows;
487
    unsigned int glyphsize = FONT_GLYPHS * glyphbytes;
487
    unsigned int glyphsize = FONT_GLYPHS * glyphbytes;
488
   
488
   
489
    backbuf = (uint8_t *) malloc(bbsize, 0);
489
    backbuf = (uint8_t *) malloc(bbsize, 0);
490
    if (!backbuf)
490
    if (!backbuf)
491
        panic("Unable to allocate backbuffer.\n");
491
        panic("Unable to allocate backbuffer.");
492
   
492
   
493
    glyphs = (uint8_t *) malloc(glyphsize, 0);
493
    glyphs = (uint8_t *) malloc(glyphsize, 0);
494
    if (!glyphs)
494
    if (!glyphs)
495
        panic("Unable to allocate glyphs.\n");
495
        panic("Unable to allocate glyphs.");
496
   
496
   
497
    bgscan = malloc(bgscanbytes, 0);
497
    bgscan = malloc(bgscanbytes, 0);
498
    if (!bgscan)
498
    if (!bgscan)
499
        panic("Unable to allocate background pixel.\n");
499
        panic("Unable to allocate background pixel.");
500
   
500
   
501
    memsetb(backbuf, bbsize, 0);
501
    memsetb(backbuf, bbsize, 0);
502
   
502
   
503
    glyphs_render();
503
    glyphs_render();
504
   
504