Project

General

Profile

Revision 123

commented out thing

View differences:

lab5.c
270 270

  
271 271
int(video_test_xpm)(xpm_map_t xpm, uint16_t x, uint16_t y) {
272 272
    int r;
273
    if ((r = get_permissions_first_mbyte()))
274
        panic("%s: sys_privctl (ADD MEM) failed: %d\n", __func__, r);
273
    //if ((r = get_permissions_first_mbyte()))
274
    //    panic("%s: sys_privctl (ADD MEM) failed: %d\n", __func__, r);
275 275

  
276 276
    if (vbe_get_mode_information(INDEXED_1024_768)) {
277 277
        printf("%s: failed to get information for mode %x.\n", __func__, INDEXED_1024_768);
......
293 293

  
294 294
    uint8_t *map = xpm_load(xpm, type, &img);
295 295

  
296
    
297

  
296 298
    for (int i = 0; i < img.width; i++) {
297 299
        for (int j = 0; j < img.height; j++) {
298 300
            set_pixel(x + i, y + j, map[i + j * img.width]);
......
366 368

  
367 369
int(video_test_controller)() {
368 370

  
369
    
370 371

  
372

  
371 373
    return 1;
372 374
}

Also available in: Unified diff